Skip to content

Commit

Permalink
use spec to processSlot
Browse files Browse the repository at this point in the history
  • Loading branch information
tbenr committed Feb 14, 2025
1 parent 54b6ca5 commit 9cb37b9
Showing 1 changed file with 1 addition and 5 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -44,7 +44,6 @@
import tech.pegasys.teku.spec.datastructures.operations.Attestation;
import tech.pegasys.teku.spec.datastructures.operations.AttestationData;
import tech.pegasys.teku.spec.datastructures.state.beaconstate.BeaconState;
import tech.pegasys.teku.spec.logic.StateTransition;
import tech.pegasys.teku.spec.logic.common.statetransition.exceptions.EpochProcessingException;
import tech.pegasys.teku.spec.logic.common.statetransition.exceptions.SlotProcessingException;
import tech.pegasys.teku.spec.schemas.SchemaDefinitions;
Expand Down Expand Up @@ -96,7 +95,6 @@ public class AggregatingAttestationPool implements SlotEventsChannel {

private final AtomicInteger size = new AtomicInteger(0);

private final StateTransition stateTransition;
private final AsyncRunner asyncRunner;

private SafeFuture<SszList<Attestation>> attestationsForBlockFuture;
Expand All @@ -119,7 +117,6 @@ public AggregatingAttestationPool(
"The number of attestations available to be included in proposed blocks");
this.maximumAttestationCount = maximumAttestationCount;
this.proposersDataManager = proposersDataManager;
this.stateTransition = new StateTransition(spec::atSlot);
this.asyncRunner = asyncRunner;
}

Expand Down Expand Up @@ -207,8 +204,7 @@ public synchronized void onSlot(final UInt64 slot) {
if (proposersDataManager.areWeProposingOnSlot(slot, state)) {
System.out.println("proposing at slot " + slot);
try {
final BeaconState blockSlotState =
stateTransition.processSlots(state, slot);
final BeaconState blockSlotState = spec.processSlots(state, slot);
System.out.println(
"precompute attestations for block at slot " + slot);
getInFlightAttestationsForBlock(
Expand Down

0 comments on commit 9cb37b9

Please sign in to comment.