Moar Progress

This commit is contained in:
Mark Mackey
2025-10-20 15:45:01 -05:00
parent f3b79839a1
commit ccb519b71c
9 changed files with 196 additions and 256 deletions

View File

@@ -1,9 +1,11 @@
use crate::BlockProcessingError;
use crate::VerifySignatures;
use crate::per_block_processing::process_operations::{
process_consolidation_requests, process_deposit_requests, process_withdrawal_requests,
};
use crate::BlockProcessingError;
use crate::VerifySignatures;
use types::{BeaconState, BeaconStateError, ChainSpec, EthSpec, Hash256, SignedExecutionPayloadEnvelope};
use types::{
BeaconState, BeaconStateError, ChainSpec, EthSpec, Hash256, SignedExecutionPayloadEnvelope,
};
#[derive(Debug)]
pub enum EnvelopeProcessingError {
@@ -47,8 +49,6 @@ pub fn envelope_processing<E: EthSpec>(
state.latest_block_header_mut().state_root = previous_state_root;
}
// Verify consistency with the beacon block
// process electra operations
let envelope = signed_envelope.message();
let payload = envelope.payload();
@@ -62,4 +62,4 @@ pub fn envelope_processing<E: EthSpec>(
todo!("the rest of process_execution_payload()");
//Ok(())
}
}

View File

@@ -11,8 +11,9 @@ use types::{
BeaconStateError, ChainSpec, DepositData, Domain, Epoch, EthSpec, Fork, Hash256,
InconsistentFork, IndexedAttestation, IndexedAttestationRef, ProposerSlashing, PublicKey,
PublicKeyBytes, Signature, SignedAggregateAndProof, SignedBeaconBlock, SignedBeaconBlockHeader,
SignedBlsToExecutionChange, SignedContributionAndProof, SignedRoot, SignedVoluntaryExit,
SigningData, Slot, SyncAggregate, SyncAggregatorSelectionData, Unsigned, SignedExecutionPayloadEnvelope,
SignedBlsToExecutionChange, SignedContributionAndProof, SignedExecutionPayloadEnvelope,
SignedRoot, SignedVoluntaryExit, SigningData, Slot, SyncAggregate, SyncAggregatorSelectionData,
Unsigned,
};
pub type Result<T> = std::result::Result<T, Error>;