From e5c113cc24b14b0cec10657ab813c7eda6d42f2c Mon Sep 17 00:00:00 2001 From: shreekara shastry <66725577+shreekarashastry@users.noreply.github.com> Date: Tue, 19 Jul 2022 14:12:18 -0500 Subject: [PATCH] blockchain.go: PCCOP returning error in the rollback case --- core/blockchain.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/core/blockchain.go b/core/blockchain.go index a37f28f2de..a6ad894830 100644 --- a/core/blockchain.go +++ b/core/blockchain.go @@ -3451,7 +3451,7 @@ func (bc *BlockChain) PreviousCanonicalCoincidentOnPath(header *types.Header, sl if status == quaiclient.CanonStatTy { // If we have found a non-cononical dominant coincident header, reorg to prevTerminalHeader if prevTerminalHeader.Hash() != header.Hash() { - return nil, err + return nil, errors.New("prevTerminalHeader not equal to the header, returning after status==CanonStatTy") } else { return terminalHeader, nil }