mirror of
https://github.com/status-im/nimbus-eth1.git
synced 2025-01-12 05:14:14 +00:00
fix block import
This commit is contained in:
parent
bdaeedb09f
commit
7ec298d49d
@ -12,6 +12,7 @@
|
|||||||
"muirGlacierBlock": 33,
|
"muirGlacierBlock": 33,
|
||||||
"berlinBlock": 33,
|
"berlinBlock": 33,
|
||||||
"londonBlock": 33,
|
"londonBlock": 33,
|
||||||
|
"mergeForkBlock": 33,
|
||||||
"terminalTotalDifficulty": 4357120,
|
"terminalTotalDifficulty": 4357120,
|
||||||
"shanghaiTime": 1444660030
|
"shanghaiTime": 1444660030
|
||||||
},
|
},
|
||||||
|
@ -24,10 +24,14 @@ proc importRlpBlock*(blocksRlp: openArray[byte]; com: CommonRef; importFile: str
|
|||||||
header: BlockHeader
|
header: BlockHeader
|
||||||
body: BlockBody
|
body: BlockBody
|
||||||
|
|
||||||
|
# The following kludge is needed for the `LegacyDbPersistent` type database
|
||||||
|
# when `pruneTrie` is enabled. For other cases, this code is irrelevant.
|
||||||
|
com.db.compensateLegacySetup()
|
||||||
|
|
||||||
# even though the new imported blocks have block number
|
# even though the new imported blocks have block number
|
||||||
# smaller than head, we keep importing it.
|
# smaller than head, we keep importing it.
|
||||||
# it maybe a side chain.
|
# it maybe a side chain.
|
||||||
|
|
||||||
while rlp.hasData:
|
while rlp.hasData:
|
||||||
try:
|
try:
|
||||||
rlp.decompose(header, body)
|
rlp.decompose(header, body)
|
||||||
|
Loading…
x
Reference in New Issue
Block a user