diff --git a/eth/stagedsync/stage_interhashes.go b/eth/stagedsync/stage_interhashes.go index 805b25b26..a2a8b8cb1 100644 --- a/eth/stagedsync/stage_interhashes.go +++ b/eth/stagedsync/stage_interhashes.go @@ -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 { diff --git a/eth/stagedsync/state.go b/eth/stagedsync/state.go index 2d81894b9..039f682ec 100644 --- a/eth/stagedsync/state.go +++ b/eth/stagedsync/state.go @@ -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