public Collection<Block> getBadBlocks() {
    return badBlocks.asMap().values();
  }
Return all invalid blocks

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