mirror of
https://github.com/ethereum/go-ethereum.git
synced 2026-08-20 10:52:25 +00:00
core/blockchain: warn on error messages
This commit prints warning on error message returned while verifying the block header.
This commit is contained in:
parent
2f66d7c47c
commit
b5afc015ba
1 changed files with 4 additions and 1 deletions
|
|
@ -409,7 +409,10 @@ func NewBlockChain(db ethdb.Database, cacheConfig *CacheConfig, genesis *Genesis
|
|||
// The first thing the node will do is reconstruct the verification data for
|
||||
// the head block (ethash cache or clique voting snapshot). Might as well do
|
||||
// it in advance.
|
||||
bc.engine.VerifyHeader(bc, bc.CurrentHeader())
|
||||
err = bc.engine.VerifyHeader(bc, bc.CurrentHeader())
|
||||
if err != nil {
|
||||
log.Warn("Failed to verify the chain's head block", "err", err)
|
||||
}
|
||||
|
||||
// Check the current state of the block hashes and make sure that we do not have any of the bad blocks in our chain
|
||||
for hash := range BadHashes {
|
||||
|
|
|
|||
Loading…
Reference in a new issue