public Optional<Hash> getLatestValidHash(final Hash blockHash) {
    return Optional.ofNullable(latestValidHashes.getIfPresent(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