From 1bcd572756b43d947901305cc794c83353ac13b5 Mon Sep 17 00:00:00 2001 From: Stefan Bratanov Date: Sat, 23 Nov 2024 18:35:00 +0000 Subject: [PATCH] fix assemble --- .../eth2/rpc/beaconchain/BeaconChainMethods.java | 12 ++++-------- 1 file changed, 4 insertions(+), 8 deletions(-) diff --git a/networking/eth2/src/main/java/tech/pegasys/teku/networking/eth2/rpc/beaconchain/BeaconChainMethods.java b/networking/eth2/src/main/java/tech/pegasys/teku/networking/eth2/rpc/beaconchain/BeaconChainMethods.java index e6c78ad3a63..75a4feed619 100644 --- a/networking/eth2/src/main/java/tech/pegasys/teku/networking/eth2/rpc/beaconchain/BeaconChainMethods.java +++ b/networking/eth2/src/main/java/tech/pegasys/teku/networking/eth2/rpc/beaconchain/BeaconChainMethods.java @@ -115,8 +115,8 @@ public static BeaconChainMethods create( final MetadataMessagesFactory metadataMessagesFactory, final RpcEncoding rpcEncoding) { return new BeaconChainMethods( - createStatus(spec, asyncRunner, statusMessageFactory, peerLookup, rpcEncoding), - createGoodBye(spec, asyncRunner, metricsSystem, peerLookup, rpcEncoding), + createStatus(asyncRunner, statusMessageFactory, peerLookup, rpcEncoding), + createGoodBye(asyncRunner, metricsSystem, peerLookup, rpcEncoding), createBeaconBlocksByRoot( spec, metricsSystem, asyncRunner, recentChainData, peerLookup, rpcEncoding), createBeaconBlocksByRange( @@ -144,11 +144,10 @@ public static BeaconChainMethods create( rpcEncoding, recentChainData), createMetadata(spec, asyncRunner, metadataMessagesFactory, peerLookup, rpcEncoding), - createPing(spec, asyncRunner, metadataMessagesFactory, peerLookup, rpcEncoding)); + createPing(asyncRunner, metadataMessagesFactory, peerLookup, rpcEncoding)); } private static Eth2RpcMethod createStatus( - final Spec spec, final AsyncRunner asyncRunner, final StatusMessageFactory statusMessageFactory, final PeerLookup peerLookup, @@ -169,7 +168,6 @@ private static Eth2RpcMethod createStatus( } private static Eth2RpcMethod createGoodBye( - final Spec spec, final AsyncRunner asyncRunner, final MetricsSystem metricsSystem, final PeerLookup peerLookup, @@ -385,8 +383,7 @@ private static Eth2RpcMethod createMetadata( expectResponse, altairContextCodec, messageHandler, - peerLookup, - spec.getNetworkingConfig()); + peerLookup); return VersionedEth2RpcMethod.create( rpcEncoding, requestType, expectResponse, List.of(v2Method, v1Method)); } else { @@ -395,7 +392,6 @@ private static Eth2RpcMethod createMetadata( } private static Eth2RpcMethod createPing( - final Spec spec, final AsyncRunner asyncRunner, final MetadataMessagesFactory metadataMessagesFactory, final PeerLookup peerLookup,