public Builder withBadBlockManager(final BadBlockManager badBlockManager) {
      this.badBlockManager = badBlockManager;
      return this;
    }
Sets the {@link BadBlockManager} for the {@link ProtocolContext}.

@param badBlockManager the bad block manager to be used in the protocol context.
@return the builder instance for chaining.
ethereum/core/src/main/java/org/hyperledger/besu/ethereum/ProtocolContext.java