mirror of
https://github.com/sigp/lighthouse.git
synced 2026-03-09 03:31:45 +00:00
Implement EIP-7892 BPO hardforks (#7521)
[EIP-7892: Blob Parameter Only Hardforks](https://eips.ethereum.org/EIPS/eip-7892) #7467
This commit is contained in:
@@ -37,8 +37,8 @@ use tokio::sync::mpsc;
|
||||
use types::blob_sidecar::FixedBlobSidecarList;
|
||||
use types::{
|
||||
Attestation, AttesterSlashing, BlobSidecar, BlobSidecarList, ChainSpec, DataColumnSidecarList,
|
||||
DataColumnSubnetId, Epoch, EthSpec, ForkName, Hash256, MainnetEthSpec, ProposerSlashing,
|
||||
SignedAggregateAndProof, SignedBeaconBlock, SignedVoluntaryExit, Slot, SubnetId,
|
||||
DataColumnSubnetId, Epoch, Hash256, MainnetEthSpec, ProposerSlashing, SignedAggregateAndProof,
|
||||
SignedBeaconBlock, SignedVoluntaryExit, Slot, SubnetId,
|
||||
};
|
||||
|
||||
type E = MainnetEthSpec;
|
||||
@@ -129,6 +129,14 @@ impl TestRig {
|
||||
"precondition: current slot is one after head"
|
||||
);
|
||||
|
||||
// Ensure there is a blob in the next block. Required for some tests.
|
||||
harness
|
||||
.mock_execution_layer
|
||||
.as_ref()
|
||||
.unwrap()
|
||||
.server
|
||||
.execution_block_generator()
|
||||
.set_min_blob_count(1);
|
||||
let (next_block_tuple, next_state) = harness
|
||||
.make_block(head.beacon_state.clone(), harness.chain.slot().unwrap())
|
||||
.await;
|
||||
@@ -799,9 +807,11 @@ async fn import_gossip_block_unacceptably_early() {
|
||||
/// Data columns that have already been processed but unobserved should be propagated without re-importing.
|
||||
#[tokio::test]
|
||||
async fn accept_processed_gossip_data_columns_without_import() {
|
||||
let processor_config = BeaconProcessorConfig::default();
|
||||
let fulu_genesis_spec = ForkName::Fulu.make_genesis_spec(E::default_spec());
|
||||
let mut rig = TestRig::new_parametric(SMALL_CHAIN, processor_config, fulu_genesis_spec).await;
|
||||
if test_spec::<E>().fulu_fork_epoch.is_none() {
|
||||
return;
|
||||
};
|
||||
|
||||
let mut rig = TestRig::new(SMALL_CHAIN).await;
|
||||
|
||||
// GIVEN the data columns have already been processed but unobserved.
|
||||
// 1. verify data column with `DoNotObserve` to create verified but unobserved data columns.
|
||||
|
||||
Reference in New Issue
Block a user