diff --git a/packages/beacon-node/test/spec/presets/epoch_processing.test.ts b/packages/beacon-node/test/spec/presets/epoch_processing.test.ts index b089863fdad3..f159612e416c 100644 --- a/packages/beacon-node/test/spec/presets/epoch_processing.test.ts +++ b/packages/beacon-node/test/spec/presets/epoch_processing.test.ts @@ -42,6 +42,8 @@ const epochTransitionFns: Record = { slashings_reset: epochFns.processSlashingsReset, sync_committee_updates: epochFns.processSyncCommitteeUpdates as EpochTransitionFn, historical_summaries_update: epochFns.processHistoricalSummariesUpdate as EpochTransitionFn, + pending_balance_deposits: epochFns.processPendingBalanceDeposits as EpochTransitionFn, + pending_consolidations: epochFns.processPendingConsolidations as EpochTransitionFn, }; /** diff --git a/packages/beacon-node/test/spec/presets/operations.test.ts b/packages/beacon-node/test/spec/presets/operations.test.ts index 63d89178bb55..228f6fd033d7 100644 --- a/packages/beacon-node/test/spec/presets/operations.test.ts +++ b/packages/beacon-node/test/spec/presets/operations.test.ts @@ -91,6 +91,21 @@ const operationFns: Record> = withdrawals: (state, testCase: {execution_payload: capella.ExecutionPayload}) => { blockFns.processWithdrawals(ForkSeq.capella, state as CachedBeaconStateCapella, testCase.execution_payload); }, + + consolidation: (state, testCase: {consolidation: electra.SignedConsolidation}) => { + blockFns.processConsolidation(state as CachedBeaconStateElectra, testCase.consolidation); + }, + + execution_layer_withdrawal_request: ( + state, + testCase: {execution_layer_withdrawal_request: electra.ExecutionLayerWithdrawalRequest} + ) => { + blockFns.processExecutionLayerWithdrawalRequest( + ForkSeq.electra, + state as CachedBeaconStateElectra, + testCase.execution_layer_withdrawal_request + ); + }, }; export type BlockProcessFn = (state: T, testCase: any) => void; @@ -140,6 +155,8 @@ const operations: TestRunnerFn = (fork, : ssz.bellatrix.ExecutionPayload, // Capella address_change: ssz.capella.SignedBLSToExecutionChange, + consolidation: ssz.electra.SignedConsolidation, + execution_layer_withdrawal_request: ssz.electra.ExecutionLayerWithdrawalRequest, }, shouldError: (testCase) => testCase.post === undefined, getExpected: (testCase) => testCase.post, diff --git a/packages/state-transition/src/block/processOperations.ts b/packages/state-transition/src/block/processOperations.ts index 67ec549a7715..f996304e9f78 100644 --- a/packages/state-transition/src/block/processOperations.ts +++ b/packages/state-transition/src/block/processOperations.ts @@ -23,6 +23,7 @@ export { processExecutionLayerWithdrawalRequest, processBlsToExecutionChange, processDepositRequest, + processConsolidation, }; export function processOperations(