Skip to main content
. 2020 Oct 22;20(21):5997. doi: 10.3390/s20215997
Algorithm A4. Version Number Attack Mitigation
1:  Begin
2: input: version_count
3: input: divisor
4: input: version
5: input: ver
6: input: j
7: input: threshold_table
8: input: node_id
9: if version_count >= divisor then
10:    set version = ver[j]
 //updating version number
11:    set threshold_table[node_id] = 2
12:  else
13:    set threshod_table[node_id] = 3
14:  End if
15:  End