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