Research Article

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

Algorithm 3

Delete block body.
Require: Target block number , Blockchain , State Database
1:  the VariationSet of the header
2: for each transaction in the body do
3:  for each affected key-value pair indo
4:    the version of
5:    the version of
6:   ifanddeletethen
7:    
8: Delete from