mirror of
https://github.com/status-im/nimbus-eth2.git
synced 2025-01-10 14:26:26 +00:00
Fix blobkey calculation (#4978)
This commit is contained in:
parent
1cf777c64b
commit
7fb9a51c76
@ -250,6 +250,8 @@ func blobkey(root: Eth2Digest, index: BlobIndex) : array[40, byte] =
|
||||
ret[0..<8] = toBytes(index)
|
||||
ret[8..<40] = root.data
|
||||
|
||||
ret
|
||||
|
||||
template expectDb(x: auto): untyped =
|
||||
# There's no meaningful error handling implemented for a corrupt database or
|
||||
# full disk - this requires manual intervention, so we'll panic for now
|
||||
|
Loading…
x
Reference in New Issue
Block a user