fix block import
This commit is contained in:
parent
bdaeedb09f
commit
7ec298d49d
|
@ -12,6 +12,7 @@
|
|||
"muirGlacierBlock": 33,
|
||||
"berlinBlock": 33,
|
||||
"londonBlock": 33,
|
||||
"mergeForkBlock": 33,
|
||||
"terminalTotalDifficulty": 4357120,
|
||||
"shanghaiTime": 1444660030
|
||||
},
|
||||
|
|
|
@ -24,6 +24,10 @@ proc importRlpBlock*(blocksRlp: openArray[byte]; com: CommonRef; importFile: str
|
|||
header: BlockHeader
|
||||
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
|
||||
# smaller than head, we keep importing it.
|
||||
# it maybe a side chain.
|
||||
|
|
Loading…
Reference in New Issue