mirror of
https://github.com/sigp/lighthouse.git
synced 2026-03-09 03:31:45 +00:00
fix ef test compile
This commit is contained in:
@@ -7,7 +7,7 @@ use ssz::Decode;
|
||||
use state_processing::common::update_progressive_balances_cache::initialize_progressive_balances_cache;
|
||||
use state_processing::epoch_cache::initialize_epoch_cache;
|
||||
use state_processing::per_block_processing::process_operations::{
|
||||
process_consolidations, process_deposit_receipts, process_execution_layer_withdrawal_requests,
|
||||
process_consolidations, process_deposit_requests, process_execution_layer_withdrawal_requests,
|
||||
};
|
||||
use state_processing::{
|
||||
per_block_processing::{
|
||||
@@ -25,7 +25,7 @@ use std::fmt::Debug;
|
||||
use types::{
|
||||
Attestation, AttesterSlashing, BeaconBlock, BeaconBlockBody, BeaconBlockBodyBellatrix,
|
||||
BeaconBlockBodyCapella, BeaconBlockBodyDeneb, BeaconBlockBodyElectra, BeaconState,
|
||||
BlindedPayload, Deposit, DepositReceipt, ExecutionLayerWithdrawalRequest, ExecutionPayload,
|
||||
BlindedPayload, Deposit, DepositRequest, ExecutionLayerWithdrawalRequest, ExecutionPayload,
|
||||
FullPayload, ProposerSlashing, SignedBlsToExecutionChange, SignedConsolidation,
|
||||
SignedVoluntaryExit, SyncAggregate,
|
||||
};
|
||||
@@ -468,7 +468,7 @@ impl<E: EthSpec> Operation<E> for ExecutionLayerWithdrawalRequest {
|
||||
}
|
||||
}
|
||||
|
||||
impl<E: EthSpec> Operation<E> for DepositReceipt {
|
||||
impl<E: EthSpec> Operation<E> for DepositRequest {
|
||||
fn handler_name() -> String {
|
||||
"deposit_receipt".into()
|
||||
}
|
||||
@@ -487,7 +487,7 @@ impl<E: EthSpec> Operation<E> for DepositReceipt {
|
||||
spec: &ChainSpec,
|
||||
_extra: &Operations<E, Self>,
|
||||
) -> Result<(), BlockProcessingError> {
|
||||
process_deposit_receipts(state, &[self.clone()], spec)
|
||||
process_deposit_requests(state, &[self.clone()], spec)
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
@@ -65,7 +65,7 @@ type_name_generic!(ContributionAndProof);
|
||||
type_name!(Deposit);
|
||||
type_name!(DepositData);
|
||||
type_name!(DepositMessage);
|
||||
type_name!(DepositReceipt);
|
||||
type_name!(DepositRequest);
|
||||
type_name!(Eth1Data);
|
||||
type_name!(ExecutionLayerWithdrawalRequest);
|
||||
type_name_generic!(ExecutionPayload);
|
||||
|
||||
@@ -101,8 +101,8 @@ fn operations_execution_layer_withdrawal_reqeusts() {
|
||||
#[test]
|
||||
#[cfg(not(feature = "fake_crypto"))]
|
||||
fn operations_deposit_receipts() {
|
||||
OperationsHandler::<MinimalEthSpec, DepositReceipt>::default().run();
|
||||
OperationsHandler::<MainnetEthSpec, DepositReceipt>::default().run();
|
||||
OperationsHandler::<MinimalEthSpec, DepositRequest>::default().run();
|
||||
OperationsHandler::<MainnetEthSpec, DepositRequest>::default().run();
|
||||
}
|
||||
|
||||
#[test]
|
||||
@@ -242,7 +242,7 @@ mod ssz_static {
|
||||
use types::blob_sidecar::BlobIdentifier;
|
||||
use types::historical_summary::HistoricalSummary;
|
||||
use types::{
|
||||
AttesterSlashingBase, AttesterSlashingElectra, Consolidation, DepositReceipt,
|
||||
AttesterSlashingBase, AttesterSlashingElectra, Consolidation, DepositRequest,
|
||||
ExecutionLayerWithdrawalRequest, LightClientBootstrapAltair, PendingBalanceDeposit,
|
||||
PendingPartialWithdrawal, *,
|
||||
};
|
||||
@@ -636,8 +636,8 @@ mod ssz_static {
|
||||
|
||||
#[test]
|
||||
fn deposit_receipt() {
|
||||
SszStaticHandler::<DepositReceipt, MinimalEthSpec>::electra_and_later().run();
|
||||
SszStaticHandler::<DepositReceipt, MainnetEthSpec>::electra_and_later().run();
|
||||
SszStaticHandler::<DepositRequest, MinimalEthSpec>::electra_and_later().run();
|
||||
SszStaticHandler::<DepositRequest, MainnetEthSpec>::electra_and_later().run();
|
||||
}
|
||||
|
||||
#[test]
|
||||
|
||||
Reference in New Issue
Block a user