Research Article
Blockchain Network Propagation Mechanism Based on P4P Architecture
Algorithm 1
Blockchain_P4P propagation mechanism.
Input: Num, BlockNodeSet, DistanceSet, IP, BandWidth, AsId | Output: | (1) | NodeSet = | (2) | //Add node information to iTracker | (3) | for each do | (4) | | (5) | | (6) | | (7) | end for | (8) | //iTracker calculates node distances | (9) | shortestPathSet = compute (BlockNodeSet, DistanceSet) | (10) | = choose (BlockNodeSet, shortestPathSet) |
|