protected ProtocolContext createProtocolContext(
      final MutableBlockchain blockchain,
      final WorldStateArchive worldStateArchive,
      final ConsensusContext consensusContext,
      final ServiceManager serviceManager) {
    return new ProtocolContext.Builder()
        .withBlockchain(blockchain)
        .withWorldStateArchive(worldStateArchive)
        .withConsensusContext(consensusContext)
        .withBadBlockManager(badBlockManager)
        .withServiceManager(serviceManager)
        .build();
  }
Create protocol context protocol context.

@param blockchain the blockchain
@param worldStateArchive the world state archive
@param consensusContext the consensus context
@param serviceManager plugin service manager
@return the protocol context
app/src/main/java/org/hyperledger/besu/controller/BesuControllerBuilder.java