public void addBadHeader(final BlockHeader header, final BadBlockCause cause) {
    LOG.debug("Register bad block header {} with cause: {}", header.toLogString(), cause);
    badHeaders.put(header.getHash(), header);
    badBlockSubscribers.forEach(s -> s.onBadBlockAdded(header, cause));
  }
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