mirror of
https://github.com/status-im/nimbus-eth2.git
synced 2025-01-11 06:46:10 +00:00
db.getBlockSZ: Remove no-op 'success' var (#4461)
This commit is contained in:
parent
ec01065555
commit
3a84d61b2e
@ -1048,10 +1048,9 @@ proc getBlockSZ*[
|
||||
eip4844.TrustedSignedBeaconBlock](
|
||||
db: BeaconChainDB, key: Eth2Digest, data: var seq[byte], T: type X): bool =
|
||||
let dataPtr = addr data # Short-lived
|
||||
var success = true
|
||||
func decode(data: openArray[byte]) =
|
||||
assign(dataPtr[], data)
|
||||
db.blocks[T.toFork].get(key.data, decode).expectDb() and success
|
||||
db.blocks[T.toFork].get(key.data, decode).expectDb()
|
||||
|
||||
proc getBlockSZ*(
|
||||
db: BeaconChainDB, key: Eth2Digest, data: var seq[byte],
|
||||
|
Loading…
x
Reference in New Issue
Block a user