fix CI errors
This commit is contained in:
parent
28de041527
commit
c991516419
@ -134,7 +134,7 @@ async fn produces_attestations() {
|
||||
assert_eq!(data.target.root, target_root, "bad target root");
|
||||
|
||||
let rpc_block =
|
||||
RpcBlock::<MainnetEthSpec>::new(Arc::new(block.clone()), blobs.clone()).unwrap();
|
||||
RpcBlock::<MainnetEthSpec>::new(Arc::new(block.clone()), Some(blobs.clone())).unwrap();
|
||||
let beacon_chain::data_availability_checker::MaybeAvailableBlock::Available(available_block) = chain
|
||||
.data_availability_checker
|
||||
.check_rpc_block_availability(rpc_block)
|
||||
@ -209,7 +209,7 @@ async fn early_attester_cache_old_request() {
|
||||
.get_blobs(&head.beacon_block_root)
|
||||
.expect("should get blobs");
|
||||
|
||||
let rpc_block = RpcBlock::<MainnetEthSpec>::new(head.beacon_block.clone(), head_blobs).unwrap();
|
||||
let rpc_block = RpcBlock::<MainnetEthSpec>::new(head.beacon_block.clone(), Some(head_blobs)).unwrap();
|
||||
let beacon_chain::data_availability_checker::MaybeAvailableBlock::Available(available_block) = harness.chain
|
||||
.data_availability_checker
|
||||
.check_rpc_block_availability(rpc_block)
|
||||
|
@ -67,10 +67,10 @@ async fn get_chain_segment() -> (Vec<BeaconSnapshot<E>>, Vec<Option<BlobSidecarL
|
||||
beacon_state: snapshot.beacon_state,
|
||||
});
|
||||
segment_blobs.push(
|
||||
harness
|
||||
Some(harness
|
||||
.chain
|
||||
.get_blobs(&snapshot.beacon_block_root)
|
||||
.unwrap(),
|
||||
.unwrap()),
|
||||
)
|
||||
}
|
||||
(segment, segment_blobs)
|
||||
@ -114,8 +114,6 @@ async fn get_chain_segment_with_signed_blobs() -> (
|
||||
.chain
|
||||
.get_blobs(&snapshot.beacon_block_root)
|
||||
.unwrap()
|
||||
.map(|blobs| {
|
||||
let blobs = blobs
|
||||
.into_iter()
|
||||
.map(|blob| {
|
||||
let block_root = blob.block_root;
|
||||
@ -131,9 +129,7 @@ async fn get_chain_segment_with_signed_blobs() -> (
|
||||
}
|
||||
})
|
||||
.collect::<Vec<_>>();
|
||||
VariableList::from(blobs)
|
||||
});
|
||||
segment_blobs.push(signed_blobs)
|
||||
segment_blobs.push(Some(VariableList::from(signed_blobs)))
|
||||
}
|
||||
(segment, segment_blobs)
|
||||
}
|
||||
|
@ -2179,7 +2179,7 @@ async fn weak_subjectivity_sync() {
|
||||
beacon_chain
|
||||
.process_block(
|
||||
full_block.canonical_root(),
|
||||
RpcBlock::new(Arc::new(full_block), blobs).unwrap(),
|
||||
RpcBlock::new(Arc::new(full_block), Some(blobs)).unwrap(),
|
||||
NotifyExecutionLayer::Yes,
|
||||
|| Ok(()),
|
||||
)
|
||||
@ -2239,7 +2239,7 @@ async fn weak_subjectivity_sync() {
|
||||
if let MaybeAvailableBlock::Available(block) = harness
|
||||
.chain
|
||||
.data_availability_checker
|
||||
.check_rpc_block_availability(RpcBlock::new(Arc::new(full_block), blobs).unwrap())
|
||||
.check_rpc_block_availability(RpcBlock::new(Arc::new(full_block), Some(blobs)).unwrap())
|
||||
.expect("should check availability")
|
||||
{
|
||||
available_blocks.push(block);
|
||||
|
Loading…
Reference in New Issue
Block a user