use of tech.pegasys.teku.networking.eth2.rpc.beaconchain.methods.GoodbyeMessageHandler in project teku by ConsenSys.
the class BeaconChainMethods method createGoodBye.
private static Eth2RpcMethod<GoodbyeMessage, GoodbyeMessage> createGoodBye(final AsyncRunner asyncRunner, final MetricsSystem metricsSystem, final PeerLookup peerLookup, final RpcEncoding rpcEncoding) {
final GoodbyeMessageHandler goodbyeHandler = new GoodbyeMessageHandler(metricsSystem);
final RpcContextCodec<?, GoodbyeMessage> contextCodec = RpcContextCodec.noop(GoodbyeMessage.SSZ_SCHEMA);
return new SingleProtocolEth2RpcMethod<>(asyncRunner, BeaconChainMethodIds.GOODBYE, 1, rpcEncoding, GoodbyeMessage.SSZ_SCHEMA, false, contextCodec, goodbyeHandler, peerLookup);
}
Aggregations