Add more log info

pull/3037/head
Rongjian Lan 5 years ago committed by Leo Chen
parent 2538a85f5c
commit e0bb1befbf
  1. 4
      internal/chain/engine.go

@ -189,8 +189,8 @@ func (e *engineImpl) VerifySeal(chain engine.ChainReader, header *block.Header)
parentHash := header.ParentHash() parentHash := header.ParentHash()
parentHeader := chain.GetHeader(parentHash, header.Number().Uint64()-1) parentHeader := chain.GetHeader(parentHash, header.Number().Uint64()-1)
if parentHeader == nil { if parentHeader == nil {
return errors.New( return errors.Errorf(
"[VerifySeal] no parent header found", "[VerifySeal] no parent header found for block %x at %d", header.Hash(), header.Number().Uint64(),
) )
} }
if chain.Config().IsStaking(parentHeader.Epoch()) { if chain.Config().IsStaking(parentHeader.Epoch()) {

Loading…
Cancel
Save