mirror of
https://github.com/sigp/lighthouse.git
synced 2026-06-16 18:28:42 +00:00
Gloas alpha spec 8 (#9315)
https://github.com/ethereum/consensus-specs/releases/tag/v1.7.0-alpha.8 Co-Authored-By: Eitan Seri-Levi <eserilev@ucsc.edu> Co-Authored-By: Michael Sproul <michael@sigmaprime.io>
This commit is contained in:
@@ -282,7 +282,7 @@ impl<E: EthSpec> BidStuff<E> for BuilderBid<E> {
|
||||
#[derive(Clone)]
|
||||
pub struct PayloadParametersCloned {
|
||||
pub parent_hash: ExecutionBlockHash,
|
||||
pub parent_gas_limit: u64,
|
||||
pub parent_gas_limit: Option<u64>,
|
||||
pub proposer_gas_limit: Option<u64>,
|
||||
pub payload_attributes: PayloadAttributes,
|
||||
pub forkchoice_update_params: ForkchoiceUpdateParameters,
|
||||
@@ -903,6 +903,7 @@ impl<E: EthSpec> MockBuilder<E> {
|
||||
expected_withdrawals,
|
||||
None,
|
||||
None,
|
||||
None,
|
||||
),
|
||||
ForkName::Deneb | ForkName::Electra | ForkName::Fulu => PayloadAttributes::new(
|
||||
timestamp,
|
||||
@@ -911,6 +912,7 @@ impl<E: EthSpec> MockBuilder<E> {
|
||||
expected_withdrawals,
|
||||
Some(head_block_root),
|
||||
None,
|
||||
None,
|
||||
),
|
||||
ForkName::Gloas => PayloadAttributes::new(
|
||||
timestamp,
|
||||
@@ -919,6 +921,7 @@ impl<E: EthSpec> MockBuilder<E> {
|
||||
expected_withdrawals,
|
||||
Some(head_block_root),
|
||||
Some(slot.as_u64()),
|
||||
None, // TODO(gloas): pass target_gas_limit
|
||||
),
|
||||
ForkName::Base | ForkName::Altair => {
|
||||
return Err("invalid fork".to_string());
|
||||
@@ -969,7 +972,7 @@ impl<E: EthSpec> MockBuilder<E> {
|
||||
|
||||
let payload_parameters = PayloadParametersCloned {
|
||||
parent_hash: head_execution_hash,
|
||||
parent_gas_limit: head_gas_limit,
|
||||
parent_gas_limit: Some(head_gas_limit),
|
||||
proposer_gas_limit: Some(proposer_gas_limit),
|
||||
payload_attributes,
|
||||
forkchoice_update_params,
|
||||
|
||||
@@ -105,6 +105,7 @@ impl<E: EthSpec> MockExecutionLayer<E> {
|
||||
None,
|
||||
None,
|
||||
None,
|
||||
None,
|
||||
);
|
||||
|
||||
// Insert a proposer to ensure the fork choice updated command works.
|
||||
@@ -146,11 +147,12 @@ impl<E: EthSpec> MockExecutionLayer<E> {
|
||||
None,
|
||||
None,
|
||||
None,
|
||||
None,
|
||||
);
|
||||
|
||||
let payload_parameters = PayloadParameters {
|
||||
parent_hash,
|
||||
parent_gas_limit,
|
||||
parent_gas_limit: Some(parent_gas_limit),
|
||||
proposer_gas_limit: None,
|
||||
payload_attributes: &payload_attributes,
|
||||
forkchoice_update_params: &forkchoice_update_params,
|
||||
@@ -199,11 +201,12 @@ impl<E: EthSpec> MockExecutionLayer<E> {
|
||||
None,
|
||||
None,
|
||||
None,
|
||||
None,
|
||||
);
|
||||
|
||||
let payload_parameters = PayloadParameters {
|
||||
parent_hash,
|
||||
parent_gas_limit,
|
||||
parent_gas_limit: Some(parent_gas_limit),
|
||||
proposer_gas_limit: None,
|
||||
payload_attributes: &payload_attributes,
|
||||
forkchoice_update_params: &forkchoice_update_params,
|
||||
|
||||
Reference in New Issue
Block a user