Skip to content

Commit 46ee890

Browse files
committed
Removed methods
1 parent cfb5fd2 commit 46ee890

File tree

2 files changed

+0
-93
lines changed

2 files changed

+0
-93
lines changed

ethereum/spec/src/main/java/tech/pegasys/teku/spec/datastructures/util/DepositRequestsUtil.java

Lines changed: 0 additions & 73 deletions
This file was deleted.

ethereum/spec/src/main/java/tech/pegasys/teku/spec/executionlayer/ExecutionLayerChannelStub.java

Lines changed: 0 additions & 20 deletions
Original file line numberDiff line numberDiff line change
@@ -65,11 +65,9 @@
6565
import tech.pegasys.teku.spec.datastructures.execution.GetPayloadResponse;
6666
import tech.pegasys.teku.spec.datastructures.execution.NewPayloadRequest;
6767
import tech.pegasys.teku.spec.datastructures.execution.PowBlock;
68-
import tech.pegasys.teku.spec.datastructures.execution.versions.electra.DepositRequest;
6968
import tech.pegasys.teku.spec.datastructures.state.beaconstate.BeaconState;
7069
import tech.pegasys.teku.spec.datastructures.type.SszKZGCommitment;
7170
import tech.pegasys.teku.spec.datastructures.util.BlobsUtil;
72-
import tech.pegasys.teku.spec.datastructures.util.DepositRequestsUtil;
7371
import tech.pegasys.teku.spec.logic.versions.deneb.types.VersionedHash;
7472
import tech.pegasys.teku.spec.schemas.SchemaDefinitions;
7573
import tech.pegasys.teku.spec.schemas.SchemaDefinitionsBellatrix;
@@ -80,8 +78,6 @@ public class ExecutionLayerChannelStub implements ExecutionLayerChannel {
8078
private static final ClientVersion STUB_CLIENT_VERSION =
8179
new ClientVersion("SB", ExecutionLayerChannel.STUB_ENDPOINT_PREFIX, "0.0.0", Bytes4.ZERO);
8280

83-
private static final boolean GENERATE_DEPOSIT_REQUESTS = false;
84-
8581
private final TimeProvider timeProvider;
8682
private final Map<Bytes32, PowBlock> knownBlocks = new ConcurrentHashMap<>();
8783
private final Map<Bytes32, PayloadStatus> knownPosBlocks = new ConcurrentHashMap<>();
@@ -90,7 +86,6 @@ public class ExecutionLayerChannelStub implements ExecutionLayerChannel {
9086
private final Set<Bytes32> requestedPowBlocks = new HashSet<>();
9187
private final Spec spec;
9288
private final BlobsUtil blobsUtil;
93-
private final DepositRequestsUtil depositRequestsUtil;
9489
private final Random random = new Random();
9590

9691
private PayloadStatus payloadStatus = PayloadStatus.VALID;
@@ -134,7 +129,6 @@ public ExecutionLayerChannelStub(
134129
kzg = KZG.NOOP;
135130
}
136131
this.blobsUtil = new BlobsUtil(spec, kzg);
137-
this.depositRequestsUtil = new DepositRequestsUtil(spec);
138132
}
139133

140134
public ExecutionLayerChannelStub(
@@ -609,18 +603,4 @@ private Bytes generateBlobsAndTransaction(
609603

610604
return blobsUtil.generateRawBlobTransactionFromKzgCommitments(commitments);
611605
}
612-
613-
private List<DepositRequest> generateDepositRequests(final BeaconState state) {
614-
return spec.atSlot(state.getSlot())
615-
.getConfig()
616-
.toVersionElectra()
617-
.map(
618-
__ -> {
619-
if (GENERATE_DEPOSIT_REQUESTS) {
620-
return depositRequestsUtil.generateDepositRequests(state);
621-
}
622-
return List.<DepositRequest>of();
623-
})
624-
.orElse(List.of());
625-
}
626606
}

0 commit comments

Comments
 (0)