fix compilation errors from merge
This commit is contained in:
parent
f45d117e73
commit
5db0a88d4f
@ -719,7 +719,10 @@ fn context_bytes_to_fork_name(
|
|||||||
let encoded = hex::encode(context_bytes);
|
let encoded = hex::encode(context_bytes);
|
||||||
RPCError::ErrorResponse(
|
RPCError::ErrorResponse(
|
||||||
RPCResponseErrorCode::InvalidRequest,
|
RPCResponseErrorCode::InvalidRequest,
|
||||||
format!("Context bytes {} do not correspond to a valid fork", encoded),
|
format!(
|
||||||
|
"Context bytes {} do not correspond to a valid fork",
|
||||||
|
encoded
|
||||||
|
),
|
||||||
)
|
)
|
||||||
})
|
})
|
||||||
}
|
}
|
||||||
|
@ -8,7 +8,6 @@ edition = "2021"
|
|||||||
[features]
|
[features]
|
||||||
portable = ["bls/supranational-portable"]
|
portable = ["bls/supranational-portable"]
|
||||||
fake_crypto = ['bls/fake_crypto']
|
fake_crypto = ['bls/fake_crypto']
|
||||||
withdrawals = ["types/withdrawals", "beacon_chain/withdrawals", "store/withdrawals", "state_processing/withdrawals"]
|
|
||||||
withdrawals-processing = ["beacon_chain/withdrawals-processing", "store/withdrawals-processing", "state_processing/withdrawals-processing"]
|
withdrawals-processing = ["beacon_chain/withdrawals-processing", "store/withdrawals-processing", "state_processing/withdrawals-processing"]
|
||||||
|
|
||||||
[dependencies]
|
[dependencies]
|
||||||
|
@ -9,7 +9,6 @@ edition = "2021"
|
|||||||
ef_tests = []
|
ef_tests = []
|
||||||
milagro = ["bls/milagro"]
|
milagro = ["bls/milagro"]
|
||||||
fake_crypto = ["bls/fake_crypto"]
|
fake_crypto = ["bls/fake_crypto"]
|
||||||
withdrawals = ["state_processing/withdrawals", "store/withdrawals", "beacon_chain/withdrawals", "types/withdrawals", "execution_layer/withdrawals"]
|
|
||||||
withdrawals-processing = ["state_processing/withdrawals-processing", "store/withdrawals-processing", "beacon_chain/withdrawals-processing", "execution_layer/withdrawals-processing"]
|
withdrawals-processing = ["state_processing/withdrawals-processing", "store/withdrawals-processing", "beacon_chain/withdrawals-processing", "execution_layer/withdrawals-processing"]
|
||||||
|
|
||||||
[dependencies]
|
[dependencies]
|
||||||
|
@ -5,9 +5,9 @@ use crate::decode::{ssz_decode_file, ssz_decode_file_with, ssz_decode_state, yam
|
|||||||
use crate::testing_spec;
|
use crate::testing_spec;
|
||||||
use serde_derive::Deserialize;
|
use serde_derive::Deserialize;
|
||||||
#[cfg(feature = "withdrawals-processing")]
|
#[cfg(feature = "withdrawals-processing")]
|
||||||
use state_processing::per_block_processing::process_operations::{
|
use state_processing::per_block_processing::process_operations::process_bls_to_execution_changes;
|
||||||
process_bls_to_execution_changes, process_bls_to_execution_changes,
|
#[cfg(feature = "withdrawals-processing")]
|
||||||
};
|
use state_processing::per_block_processing::process_withdrawals;
|
||||||
use state_processing::{
|
use state_processing::{
|
||||||
per_block_processing::{
|
per_block_processing::{
|
||||||
errors::BlockProcessingError,
|
errors::BlockProcessingError,
|
||||||
@ -356,10 +356,6 @@ impl<E: EthSpec> Operation<E> for WithdrawalsPayload<E> {
|
|||||||
return false;
|
return false;
|
||||||
}
|
}
|
||||||
|
|
||||||
if !cfg!(feature = "withdrawals") {
|
|
||||||
return false;
|
|
||||||
}
|
|
||||||
|
|
||||||
fork_name != ForkName::Base && fork_name != ForkName::Altair && fork_name != ForkName::Merge
|
fork_name != ForkName::Base && fork_name != ForkName::Altair && fork_name != ForkName::Merge
|
||||||
}
|
}
|
||||||
|
|
||||||
@ -372,7 +368,7 @@ impl<E: EthSpec> Operation<E> for WithdrawalsPayload<E> {
|
|||||||
})
|
})
|
||||||
}
|
}
|
||||||
|
|
||||||
#[cfg(feature = "withdrawals")]
|
#[cfg(feature = "withdrawals-processing")]
|
||||||
fn apply_to(
|
fn apply_to(
|
||||||
&self,
|
&self,
|
||||||
state: &mut BeaconState<E>,
|
state: &mut BeaconState<E>,
|
||||||
@ -386,6 +382,7 @@ impl<E: EthSpec> Operation<E> for WithdrawalsPayload<E> {
|
|||||||
process_withdrawals::<_, FullPayload<_>>(state, self.payload.to_ref(), spec)
|
process_withdrawals::<_, FullPayload<_>>(state, self.payload.to_ref(), spec)
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
}
|
||||||
|
|
||||||
#[cfg(feature = "withdrawals-processing")]
|
#[cfg(feature = "withdrawals-processing")]
|
||||||
impl<E: EthSpec> Operation<E> for SignedBlsToExecutionChange {
|
impl<E: EthSpec> Operation<E> for SignedBlsToExecutionChange {
|
||||||
|
Loading…
Reference in New Issue
Block a user