mirror of
https://github.com/sigp/lighthouse.git
synced 2026-03-21 22:04:44 +00:00
Breakup RPCBlock into LookupBlock & RangeSyncBlock (#8860)
Co-Authored-By: Mark Mackey <mark@sigmaprime.io>
This commit is contained in:
@@ -5,7 +5,7 @@ use beacon_chain::test_utils::{
|
||||
};
|
||||
use beacon_chain::{
|
||||
AvailabilityProcessingStatus, BlockError, ChainConfig, InvalidSignature, NotifyExecutionLayer,
|
||||
block_verification_types::AsBlock,
|
||||
block_verification_types::{AsBlock, LookupBlock},
|
||||
};
|
||||
use bls::{Keypair, Signature};
|
||||
use logging::create_test_tracing_subscriber;
|
||||
@@ -76,14 +76,11 @@ async fn rpc_blobs_with_invalid_header_signature() {
|
||||
|
||||
// Process the block without blobs so that it doesn't become available.
|
||||
harness.advance_slot();
|
||||
let rpc_block = harness
|
||||
.build_rpc_block_from_blobs(signed_block.clone(), None, false)
|
||||
.unwrap();
|
||||
let availability = harness
|
||||
.chain
|
||||
.process_block(
|
||||
block_root,
|
||||
rpc_block,
|
||||
LookupBlock::new(signed_block.clone()),
|
||||
NotifyExecutionLayer::Yes,
|
||||
BlockImportSource::Lookup,
|
||||
|| Ok(()),
|
||||
|
||||
Reference in New Issue
Block a user