mirror of
https://github.com/sigp/lighthouse.git
synced 2026-05-30 12:47:05 +00:00
Test fixes
This commit is contained in:
@@ -404,7 +404,7 @@ impl TestRig {
|
||||
RpcBlock::new(
|
||||
self.next_block.clone(),
|
||||
None,
|
||||
&self._harness.chain.data_availability_checker,
|
||||
&self._harness.chain.data_availability_checker.v1(),
|
||||
self._harness.spec.clone(),
|
||||
)
|
||||
.unwrap(),
|
||||
@@ -422,7 +422,7 @@ impl TestRig {
|
||||
RpcBlock::new(
|
||||
self.next_block.clone(),
|
||||
None,
|
||||
&self._harness.chain.data_availability_checker,
|
||||
&self._harness.chain.data_availability_checker.v1(),
|
||||
self._harness.spec.clone(),
|
||||
)
|
||||
.unwrap(),
|
||||
|
||||
@@ -490,6 +490,7 @@ mod tests {
|
||||
|
||||
use super::RangeBlockComponentsRequest;
|
||||
use beacon_chain::custody_context::NodeCustodyType;
|
||||
use beacon_chain::data_availability_router::DataColumnCache;
|
||||
use beacon_chain::test_utils::{
|
||||
NumBlobs, generate_rand_block_and_blobs, generate_rand_block_and_data_columns,
|
||||
test_da_checker, test_spec,
|
||||
|
||||
@@ -777,7 +777,7 @@ impl<T: BeaconChainTypes> SyncNetworkContext<T> {
|
||||
|
||||
let range_req = entry.get_mut();
|
||||
if let Some(blocks_result) = range_req.responses(
|
||||
self.chain.data_availability_checker.clone(),
|
||||
self.chain.data_availability_checker.v1().clone(),
|
||||
self.chain.spec.clone(),
|
||||
) {
|
||||
if let Err(CouplingError::DataColumnPeerFailure {
|
||||
@@ -1615,7 +1615,7 @@ impl<T: BeaconChainTypes> SyncNetworkContext<T> {
|
||||
let block = RpcBlock::new(
|
||||
block,
|
||||
None,
|
||||
&self.chain.data_availability_checker,
|
||||
&self.chain.data_availability_checker.v1(),
|
||||
self.chain.spec.clone(),
|
||||
)
|
||||
.map_err(|_| SendErrorProcessor::SendError)?;
|
||||
|
||||
@@ -2294,7 +2294,7 @@ mod deneb_only {
|
||||
let block = RpcBlock::new(
|
||||
block,
|
||||
None,
|
||||
&self.rig.harness.chain.data_availability_checker,
|
||||
&self.rig.harness.chain.data_availability_checker.v1(),
|
||||
self.rig.harness.chain.spec.clone(),
|
||||
)
|
||||
.unwrap();
|
||||
|
||||
@@ -454,7 +454,7 @@ fn build_rpc_block(
|
||||
RpcBlock::new(
|
||||
block,
|
||||
Some(block_data),
|
||||
&chain.data_availability_checker,
|
||||
&chain.data_availability_checker.v1(),
|
||||
chain.spec.clone(),
|
||||
)
|
||||
.unwrap()
|
||||
@@ -469,7 +469,7 @@ fn build_rpc_block(
|
||||
RpcBlock::new(
|
||||
block,
|
||||
Some(block_data),
|
||||
&chain.data_availability_checker,
|
||||
&chain.data_availability_checker.v1(),
|
||||
chain.spec.clone(),
|
||||
)
|
||||
.unwrap()
|
||||
@@ -478,7 +478,7 @@ fn build_rpc_block(
|
||||
None => RpcBlock::new(
|
||||
block,
|
||||
Some(AvailableBlockData::NoData),
|
||||
&chain.data_availability_checker,
|
||||
&chain.data_availability_checker.v1(),
|
||||
chain.spec.clone(),
|
||||
)
|
||||
.unwrap(),
|
||||
|
||||
Reference in New Issue
Block a user