mirror of
https://github.com/status-im/nimbus-eth1.git
synced 2025-01-11 21:04:11 +00:00
Fix missing ssz encoding overhead in truncateEnrs (#1988)
This commit is contained in:
parent
3199857ed5
commit
3ad00686f4
@ -294,7 +294,7 @@ func truncateEnrs(
|
|||||||
let res = enrs.add(enr)
|
let res = enrs.add(enr)
|
||||||
# With max payload of discv5 and the sizes of ENRs this should not occur.
|
# With max payload of discv5 and the sizes of ENRs this should not occur.
|
||||||
doAssert(res, "32 limit will not be reached")
|
doAssert(res, "32 limit will not be reached")
|
||||||
totalSize = totalSize + enr.len()
|
totalSize = totalSize + enr.len() + enrOverhead
|
||||||
else:
|
else:
|
||||||
break
|
break
|
||||||
|
|
||||||
|
Loading…
x
Reference in New Issue
Block a user