all: change blacklist terms
This commit is contained in:
committed by
GitHub
parent
56e9001a1a
commit
523866c2cc
@ -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
|
||||
}
|
||||
}
|
||||
|
||||
|
Reference in New Issue
Block a user