[consensus] log block verification error (#4243)

pull/4246/head
Max 2 years ago committed by GitHub
parent 8055f789a8
commit 2afaeb9f94
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
  1. 2
      consensus/consensus.go

@ -141,7 +141,7 @@ type Consensus struct {
func (consensus *Consensus) VerifyBlock(block *types.Block) error {
if !consensus.FBFTLog.IsBlockVerified(block.Hash()) {
if err := consensus.BlockVerifier(block); err != nil {
return errors.New("Block verification failed")
return errors.Errorf("Block verification failed: %s", err)
}
consensus.FBFTLog.MarkBlockVerified(block)
}

Loading…
Cancel
Save