all: change blacklist terms

This commit is contained in:
baptiste-b-pegasys
2021-07-29 10:17:40 +02:00
committed by GitHub
parent 56e9001a1a
commit 523866c2cc
8 changed files with 17 additions and 17 deletions

View File

@ -1785,8 +1785,8 @@ func (bc *BlockChain) insertChain(chain types.Blocks, verifySeals bool) (int, er
}
// If the header is a banned one, straight out abort
if BadHashes[block.Hash()] {
bc.reportBlock(block, nil, ErrBlacklistedHash)
return it.index, ErrBlacklistedHash
bc.reportBlock(block, nil, ErrBannedHash)
return it.index, ErrBannedHash
}
// If the block is known (in the middle of the chain), it's a special case for
// Clique blocks where they can share state among each other, so importing an