log warning when init genesis state

This commit is contained in:
maskpp 2025-07-21 22:21:13 +08:00
parent f17df6db91
commit 473b7dd628

View file

@ -104,7 +104,7 @@ func (f *chainFreezer) Close() error {
func (f *chainFreezer) readHeadNumber(db ethdb.KeyValueReader) uint64 { func (f *chainFreezer) readHeadNumber(db ethdb.KeyValueReader) uint64 {
hash := ReadHeadBlockHash(db) hash := ReadHeadBlockHash(db)
if hash == (common.Hash{}) { if hash == (common.Hash{}) {
log.Error("Head block is not reachable") log.Warn("Head block is not reachable")
return 0 return 0
} }
number, ok := ReadHeaderNumber(db, hash) number, ok := ReadHeaderNumber(db, hash)