mirror of
https://github.com/sigp/lighthouse.git
synced 2026-07-04 13:24:39 +00:00
Fix compilation of beacon_chain tests
This commit is contained in:
@@ -2,7 +2,9 @@
|
|||||||
|
|
||||||
use beacon_chain::block_verification_types::{AsBlock, ExecutedBlock, RpcBlock};
|
use beacon_chain::block_verification_types::{AsBlock, ExecutedBlock, RpcBlock};
|
||||||
use beacon_chain::{
|
use beacon_chain::{
|
||||||
test_utils::{AttestationStrategy, BeaconChainHarness, BlockStrategy, EphemeralHarnessType},
|
test_utils::{
|
||||||
|
test_spec, AttestationStrategy, BeaconChainHarness, BlockStrategy, EphemeralHarnessType,
|
||||||
|
},
|
||||||
AvailabilityProcessingStatus, BeaconChain, BeaconChainTypes, ExecutionPendingBlock,
|
AvailabilityProcessingStatus, BeaconChain, BeaconChainTypes, ExecutionPendingBlock,
|
||||||
};
|
};
|
||||||
use beacon_chain::{
|
use beacon_chain::{
|
||||||
@@ -1210,8 +1212,14 @@ async fn block_gossip_verification() {
|
|||||||
#[tokio::test]
|
#[tokio::test]
|
||||||
async fn verify_block_for_gossip_slashing_detection() {
|
async fn verify_block_for_gossip_slashing_detection() {
|
||||||
let slasher_dir = tempdir().unwrap();
|
let slasher_dir = tempdir().unwrap();
|
||||||
|
let spec = Arc::new(test_spec::<E>());
|
||||||
let slasher = Arc::new(
|
let slasher = Arc::new(
|
||||||
Slasher::open(SlasherConfig::new(slasher_dir.path().into()), test_logger()).unwrap(),
|
Slasher::open(
|
||||||
|
SlasherConfig::new(slasher_dir.path().into()),
|
||||||
|
spec,
|
||||||
|
test_logger(),
|
||||||
|
)
|
||||||
|
.unwrap(),
|
||||||
);
|
);
|
||||||
|
|
||||||
let inner_slasher = slasher.clone();
|
let inner_slasher = slasher.clone();
|
||||||
|
|||||||
Reference in New Issue
Block a user