Research Article
Blockchain-Empowered High-Frequency Spectrum Management IoT: A Multilayer PBFT Consensus Perspective
Algorithm 3
Two-layer PBFT consensus:
. while valid sub-pre-prepare2 received=True do | multicasts sub-prepare2 to in the same | consensus group | end while | while valid sub-prepare2 received=True do | if number of valid sub-prepare2≥2fthen | sub-prepare2=valid | multicasts sub-commit2 to in the same | consensus group | end if | end while | while valid sub-commit2 received=True do | if number of valid sub-commit2≥2fthen | sub-commit2=valid | send sub-reply2 to group leader | end if | end while |
|