mirror of
https://gitlab.com/pulsechaincom/erigon-pulse.git
synced 2024-12-25 13:07:17 +00:00
cleans (#2349)
This commit is contained in:
parent
f042b5310f
commit
2a8f1959a5
@ -88,7 +88,7 @@ func SpawnIntermediateHashesStage(s *StageState, u Unwinder, tx ethdb.RwTx, cfg
|
||||
|
||||
if err == nil {
|
||||
if cfg.checkRoot && root != expectedRootHash {
|
||||
log.Error(fmt.Sprintf("[%s] Wrong trie root of block %d: %x, expected (from header): %x", logPrefix, to, root, expectedRootHash))
|
||||
log.Error(fmt.Sprintf("[%s] Wrong trie root of block %d: %x, expected (from header): %x. Block hash: %x", logPrefix, to, root, expectedRootHash, headerHash))
|
||||
if to > s.BlockNumber {
|
||||
log.Warn("Unwinding due to incorrect root hash", "to", to-1)
|
||||
if err = u.UnwindTo(to-1, tx, headerHash); err != nil {
|
||||
|
@ -73,7 +73,7 @@ func (s *State) GetLocalHeight(db ethdb.KVGetter) (uint64, error) {
|
||||
}
|
||||
|
||||
func (s *State) UnwindTo(blockNumber uint64, tx TxOrDb, badBlock common.Hash) error {
|
||||
log.Info("UnwindTo", "block", blockNumber)
|
||||
log.Info("UnwindTo", "block", blockNumber, "bad_block_hash", badBlock)
|
||||
for _, stage := range s.unwindOrder {
|
||||
if stage.Disabled {
|
||||
continue
|
||||
|
Loading…
Reference in New Issue
Block a user