| Algorithm 8: Check Gas Limit Value |
|
Begin
Arr[allNodes]; Define MaximumGasValueGiven = Arr[NodeID].GasMaximum; For i to n { For j = i + 1 to n { If(Arr[j].GasValue > MaximumGasValueGiven) Return Error(); LabelDeviceAsMalicious(); DropFromWhiteList();//Delete element from array } } |