Skip to main content
. 2022 Sep 8;22(18):6806. doi: 10.3390/s22186806
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
} }