Skip to content

Commit d7eaa97

Browse files
committed
moved to error
1 parent 211cb03 commit d7eaa97

1 file changed

Lines changed: 2 additions & 9 deletions

File tree

‎core/chain_manager.go‎

Lines changed: 2 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -455,8 +455,8 @@ func (self *ChainManager) InsertChain(chain types.Blocks) error {
455455
}
456456

457457
h := block.Header()
458-
chainlogger.Infof("INVALID block #%v (%x)\n", h.Number, h.Hash().Bytes()[:4])
459-
chainlogger.Infoln(err)
458+
chainlogger.Errorf("INVALID block #%v (%x)\n", h.Number, h.Hash().Bytes()[:4])
459+
chainlogger.Errorln(err)
460460
chainlogger.Debugln(block)
461461
return err
462462
}
@@ -542,10 +542,3 @@ out:
542542
}
543543
}
544544
}
545-
546-
/*
547-
// Satisfy state query interface
548-
func (self *ChainManager) GetAccount(addr common.Hash) *state.StateObject {
549-
return self.State().GetAccount(addr)
550-
}
551-
*/

0 commit comments

Comments
 (0)