diff --git a/internal/chain/engine.go b/internal/chain/engine.go index 60bb4141b..1b3eb1ade 100644 --- a/internal/chain/engine.go +++ b/internal/chain/engine.go @@ -172,6 +172,9 @@ func (e *engineImpl) VerifySeal(chain engine.ChainReader, header *block.Header) if chain.CurrentHeader().Number().Uint64() <= uint64(1) { return nil } + if header == nil { + return errors.New("[VerifySeal] nil block header") + } publicKeys, err := ReadPublicKeysFromLastBlock(chain, header) if err != nil {