@VisibleForTesting
  public Collection<BlockHeader> getBadHeaders() {
    return badHeaders.asMap().values();
  }
Return all invalid blocks

@return a collection of invalid blocks
ethereum/core/src/main/java/org/hyperledger/besu/ethereum/chain/BadBlockManager.java