Skip to content

Commit

Permalink
Removed methods
Browse files Browse the repository at this point in the history
  • Loading branch information
lucassaldanha committed Oct 14, 2024
1 parent 2f0e031 commit fe80463
Show file tree
Hide file tree
Showing 2 changed files with 0 additions and 93 deletions.

This file was deleted.

Original file line number Diff line number Diff line change
Expand Up @@ -65,11 +65,9 @@
import tech.pegasys.teku.spec.datastructures.execution.GetPayloadResponse;
import tech.pegasys.teku.spec.datastructures.execution.NewPayloadRequest;
import tech.pegasys.teku.spec.datastructures.execution.PowBlock;
import tech.pegasys.teku.spec.datastructures.execution.versions.electra.DepositRequest;
import tech.pegasys.teku.spec.datastructures.state.beaconstate.BeaconState;
import tech.pegasys.teku.spec.datastructures.type.SszKZGCommitment;
import tech.pegasys.teku.spec.datastructures.util.BlobsUtil;
import tech.pegasys.teku.spec.datastructures.util.DepositRequestsUtil;
import tech.pegasys.teku.spec.logic.versions.deneb.types.VersionedHash;
import tech.pegasys.teku.spec.schemas.SchemaDefinitions;
import tech.pegasys.teku.spec.schemas.SchemaDefinitionsBellatrix;
Expand All @@ -80,8 +78,6 @@ public class ExecutionLayerChannelStub implements ExecutionLayerChannel {
private static final ClientVersion STUB_CLIENT_VERSION =
new ClientVersion("SB", ExecutionLayerChannel.STUB_ENDPOINT_PREFIX, "0.0.0", Bytes4.ZERO);

private static final boolean GENERATE_DEPOSIT_REQUESTS = false;

private final TimeProvider timeProvider;
private final Map<Bytes32, PowBlock> knownBlocks = new ConcurrentHashMap<>();
private final Map<Bytes32, PayloadStatus> knownPosBlocks = new ConcurrentHashMap<>();
Expand All @@ -90,7 +86,6 @@ public class ExecutionLayerChannelStub implements ExecutionLayerChannel {
private final Set<Bytes32> requestedPowBlocks = new HashSet<>();
private final Spec spec;
private final BlobsUtil blobsUtil;
private final DepositRequestsUtil depositRequestsUtil;
private final Random random = new Random();

private PayloadStatus payloadStatus = PayloadStatus.VALID;
Expand Down Expand Up @@ -134,7 +129,6 @@ public ExecutionLayerChannelStub(
kzg = KZG.NOOP;
}
this.blobsUtil = new BlobsUtil(spec, kzg);
this.depositRequestsUtil = new DepositRequestsUtil(spec);
}

public ExecutionLayerChannelStub(
Expand Down Expand Up @@ -609,18 +603,4 @@ private Bytes generateBlobsAndTransaction(

return blobsUtil.generateRawBlobTransactionFromKzgCommitments(commitments);
}

private List<DepositRequest> generateDepositRequests(final BeaconState state) {
return spec.atSlot(state.getSlot())
.getConfig()
.toVersionElectra()
.map(
__ -> {
if (GENERATE_DEPOSIT_REQUESTS) {
return depositRequestsUtil.generateDepositRequests(state);
}
return List.<DepositRequest>of();
})
.orElse(List.of());
}
}

0 comments on commit fe80463

Please sign in to comment.