Research Article

A Caching-Enabled Permissioned Blockchain Scheme for Industrial Internet of Things Based on Deep Reinforcement Learning

Algorithm 1

Append new block header.
Require: New Block header , Blockchain , State Database
1:  the last block number in
2:  the block number of
3: ifthen
4:   the VariationSet of
5:  for each key-value pair indo
6:   if = createor = updatethen
7:    
8:   else if = deletethen
9:    Delete from
10:  Append to