use of tech.pegasys.teku.networking.eth2.rpc.beaconchain.methods.StatusMessageHandler in project teku by ConsenSys.
the class BeaconChainMethods method createStatus.
private static Eth2RpcMethod<StatusMessage, StatusMessage> createStatus(final AsyncRunner asyncRunner, final StatusMessageFactory statusMessageFactory, final PeerLookup peerLookup, final RpcEncoding rpcEncoding) {
final StatusMessageHandler statusHandler = new StatusMessageHandler(statusMessageFactory);
final RpcContextCodec<?, StatusMessage> contextCodec = RpcContextCodec.noop(StatusMessage.SSZ_SCHEMA);
return new SingleProtocolEth2RpcMethod<>(asyncRunner, BeaconChainMethodIds.STATUS, 1, rpcEncoding, StatusMessage.SSZ_SCHEMA, true, contextCodec, statusHandler, peerLookup);
}
Aggregations