Skip to content

Commit

Permalink
Remove unused parameter
Browse files Browse the repository at this point in the history
  • Loading branch information
courtneyeh committed Apr 11, 2024
1 parent e214ad1 commit 513c93e
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 9 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,6 @@
package tech.pegasys.teku.beacon.sync;

import static org.assertj.core.api.Assertions.assertThat;
import static org.mockito.Mockito.mock;
import static tech.pegasys.teku.infrastructure.async.SafeFutureAssert.assertThatSafeFuture;

import java.util.ArrayList;
Expand All @@ -35,7 +34,6 @@
import tech.pegasys.teku.spec.TestSpecFactory;
import tech.pegasys.teku.spec.config.SpecConfig;
import tech.pegasys.teku.spec.datastructures.blocks.SignedBeaconBlock;
import tech.pegasys.teku.statetransition.util.DebugDataDumper;

public class BlockPropagationIntegrationTest {
private final AsyncRunner asyncRunner = DelayedExecutorAsyncRunner.create();
Expand All @@ -61,8 +59,7 @@ public void shouldFetchUnknownAncestorsOfPropagatedBlock() throws Exception {
asyncRunner,
networkFactory,
validatorKeys,
c -> c.rpcEncoding(rpcEncoding).gossipEncoding(gossipEncoding),
mock(DebugDataDumper.class));
c -> c.rpcEncoding(rpcEncoding).gossipEncoding(gossipEncoding));
node1.chainUtil().setSlot(currentSlot);

// Add some blocks to node1, which node 2 will need to fetch
Expand All @@ -79,8 +76,7 @@ public void shouldFetchUnknownAncestorsOfPropagatedBlock() throws Exception {
asyncRunner,
networkFactory,
validatorKeys,
c -> c.rpcEncoding(rpcEncoding).gossipEncoding(gossipEncoding),
mock(DebugDataDumper.class));
c -> c.rpcEncoding(rpcEncoding).gossipEncoding(gossipEncoding));

// Connect networks
Waiter.waitFor(node1.connect(node2));
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -65,7 +65,6 @@
import tech.pegasys.teku.statetransition.forkchoice.ForkChoice;
import tech.pegasys.teku.statetransition.forkchoice.MergeTransitionBlockValidator;
import tech.pegasys.teku.statetransition.forkchoice.NoopForkChoiceNotifier;
import tech.pegasys.teku.statetransition.util.DebugDataDumper;
import tech.pegasys.teku.statetransition.util.FutureItems;
import tech.pegasys.teku.statetransition.util.PendingPool;
import tech.pegasys.teku.statetransition.util.PoolFactory;
Expand Down Expand Up @@ -104,8 +103,7 @@ public static SyncingNodeManager create(
final AsyncRunner asyncRunner,
final Eth2P2PNetworkFactory networkFactory,
final List<BLSKeyPair> validatorKeys,
final Consumer<Eth2P2PNetworkBuilder> configureNetwork,
final DebugDataDumper debugDataDumper)
final Consumer<Eth2P2PNetworkBuilder> configureNetwork)
throws Exception {
final Spec spec = TestSpecFactory.createMinimalPhase0();
final EventChannels eventChannels =
Expand Down

0 comments on commit 513c93e

Please sign in to comment.