public boolean isBadBlock(final Hash blockHash) {
    return badBlocks.asMap().containsKey(blockHash) || badHeaders.asMap().containsKey(blockHash);
  }
Return an invalid block based on the hash

@param hash of the block
@return an invalid block
ethereum/core/src/main/java/org/hyperledger/besu/ethereum/chain/BadBlockManager.java