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

@ -315,11 +315,11 @@ func (hc *HeaderChain) ValidateHeaderChain(chain []*types.Header, checkFreq int)
}
// If the header is a banned one, straight out abort
if BadHashes[chain[i].ParentHash] {
return i - 1, ErrBlacklistedHash
return i - 1, ErrBannedHash
}
// If it's the last header in the cunk, we need to check it too
if i == len(chain)-1 && BadHashes[chain[i].Hash()] {
return i, ErrBlacklistedHash
return i, ErrBannedHash
}
}