public Optional<Block> getBadBlock(final Hash hash) {
    return Optional.ofNullable(badBlocks.getIfPresent(hash));
  }
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