mirror of
https://github.com/status-im/nimbus-eth1.git
synced 2025-01-27 12:35:00 +00:00
Quickfix for possible IndexError in state network recursive gossip (#2052)
This would currently manifest sometimes in state gossip test in CI or locally. But could occur on fluffy binary in case state network is enable and data is gossiped.
This commit is contained in:
parent
d830692b72
commit
b656875778
@ -187,6 +187,11 @@ proc recursiveGossipAccountTrieNode(
|
||||
nibbles = decodedKey.accountTrieNodeKey.path.unpackNibbles()
|
||||
proof = decodedValue.proof
|
||||
|
||||
# When nibbles is empty this means the root node was received. Recursive
|
||||
# gossiping is finished.
|
||||
if nibbles.len() == 0:
|
||||
return
|
||||
|
||||
discard nibbles.pop()
|
||||
discard (distinctBase proof).pop()
|
||||
let
|
||||
|
Loading…
x
Reference in New Issue
Block a user