| Algorithm 1. Execution process of the PoAh |
|
1: function PROCESSPOAH (Nnv) 2: Input: Nnv = Nnv1,Nnv2,Nnv2,...▷ a set of invalided nodes in the network 3: Nt: a trusted node that verifies the authenticity of invalid blocks. 4: Output: Nv = Nv1,Nv2,Nv3,... ▷ a set of validated nodes in the network. 5: for each node i in Nnv do 6: if Nt.verify(i) is true then 7: Nv← Ni 8: else if Nt.verify(i) is false then 9: Nnv ← Ni 10: end if 11: end for 12: Return Nv 13: end function |