Search in sources :

Example 1 with PoaQueryServiceImpl

use of org.hyperledger.besu.consensus.common.PoaQueryServiceImpl in project besu by hyperledger.

the class CliqueQueryPluginServiceFactory method appendPluginServices.

@Override
public void appendPluginServices(final BesuPluginContextImpl besuContext) {
    final BlockInterface blockInterface = new CliqueBlockInterface();
    final PoaQueryServiceImpl service = new PoaQueryServiceImpl(blockInterface, blockchain, nodeKey);
    besuContext.addService(PoaQueryService.class, service);
    besuContext.addService(PoAMetricsService.class, service);
}
Also used : PoaQueryServiceImpl(org.hyperledger.besu.consensus.common.PoaQueryServiceImpl) CliqueBlockInterface(org.hyperledger.besu.consensus.clique.CliqueBlockInterface) CliqueBlockInterface(org.hyperledger.besu.consensus.clique.CliqueBlockInterface) BlockInterface(org.hyperledger.besu.consensus.common.BlockInterface)

Aggregations

CliqueBlockInterface (org.hyperledger.besu.consensus.clique.CliqueBlockInterface)1 BlockInterface (org.hyperledger.besu.consensus.common.BlockInterface)1 PoaQueryServiceImpl (org.hyperledger.besu.consensus.common.PoaQueryServiceImpl)1