Skip to content

Commit

Permalink
blockchain.go: PCCOP returning error in the rollback case
Browse files Browse the repository at this point in the history
  • Loading branch information
shreekarashastry committed Jul 19, 2022
1 parent 83ab385 commit e5c113c
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion core/blockchain.go
Original file line number Diff line number Diff line change
Expand Up @@ -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
}
Expand Down

0 comments on commit e5c113c

Please sign in to comment.