6565import tech .pegasys .teku .spec .datastructures .execution .GetPayloadResponse ;
6666import tech .pegasys .teku .spec .datastructures .execution .NewPayloadRequest ;
6767import tech .pegasys .teku .spec .datastructures .execution .PowBlock ;
68- import tech .pegasys .teku .spec .datastructures .execution .versions .electra .DepositRequest ;
6968import tech .pegasys .teku .spec .datastructures .state .beaconstate .BeaconState ;
7069import tech .pegasys .teku .spec .datastructures .type .SszKZGCommitment ;
7170import tech .pegasys .teku .spec .datastructures .util .BlobsUtil ;
72- import tech .pegasys .teku .spec .datastructures .util .DepositRequestsUtil ;
7371import tech .pegasys .teku .spec .logic .versions .deneb .types .VersionedHash ;
7472import tech .pegasys .teku .spec .schemas .SchemaDefinitions ;
7573import 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