mirror of
https://gitlab.com/pulsechaincom/erigon-pulse.git
synced 2024-12-22 03:30:37 +00:00
db migration fix: it was able run with delay #4732
This commit is contained in:
parent
ac9b7d8cc2
commit
13bf5c30c1
@ -30,14 +30,14 @@ var resetBlocks = Migration{
|
||||
if err := BeforeCommit(tx, nil, true); err != nil {
|
||||
return err
|
||||
}
|
||||
return
|
||||
return tx.Commit()
|
||||
}
|
||||
genesisBlock := rawdb.ReadHeaderByNumber(tx, 0)
|
||||
if genesisBlock == nil {
|
||||
if err := BeforeCommit(tx, nil, true); err != nil {
|
||||
return err
|
||||
}
|
||||
return nil
|
||||
return tx.Commit()
|
||||
}
|
||||
chainConfig, err := rawdb.ReadChainConfig(tx, genesisBlock.Hash())
|
||||
if err != nil {
|
||||
|
Loading…
Reference in New Issue
Block a user