mirror of
https://github.com/status-im/nimbus-eth1.git
synced 2025-01-12 13:24:21 +00:00
reduce blockHash call (#2954)
This commit is contained in:
parent
cd3cea0e29
commit
48aa410f8a
3
.gitignore
vendored
3
.gitignore
vendored
@ -41,3 +41,6 @@ nimble.paths
|
||||
|
||||
# nimbus-build-system files
|
||||
nimbus-build-system.paths
|
||||
|
||||
# vscode generated files for path mapping into vendor
|
||||
.vscode
|
@ -153,8 +153,9 @@ proc validateBlock(c: ForkedChainRef,
|
||||
if updateCursor:
|
||||
c.updateCursor(blk, move(res.value))
|
||||
|
||||
let blkHash = blk.header.blockHash
|
||||
for i, tx in blk.transactions:
|
||||
c.txRecords[rlpHash(tx)] = (blk.header.blockHash, uint64(i))
|
||||
c.txRecords[rlpHash(tx)] = (blkHash, uint64(i))
|
||||
|
||||
ok()
|
||||
|
||||
|
Loading…
x
Reference in New Issue
Block a user