mirror of
https://github.com/sigp/lighthouse.git
synced 2026-04-18 05:18:30 +00:00
Rename "TestRig" to "BeaconChainHarness"
This commit is contained in:
@@ -13,7 +13,7 @@ use std::io::prelude::*;
|
||||
use std::sync::Arc;
|
||||
use types::{BeaconBlock, ChainSpec, Keypair, Validator};
|
||||
|
||||
pub struct TestRig {
|
||||
pub struct BeaconChainHarness {
|
||||
db: Arc<MemoryDB>,
|
||||
beacon_chain: Arc<BeaconChain<MemoryDB, TestingSlotClock>>,
|
||||
block_store: Arc<BeaconBlockStore<MemoryDB>>,
|
||||
@@ -22,7 +22,7 @@ pub struct TestRig {
|
||||
pub spec: ChainSpec,
|
||||
}
|
||||
|
||||
impl TestRig {
|
||||
impl BeaconChainHarness {
|
||||
pub fn new(mut spec: ChainSpec, validator_count: usize) -> Self {
|
||||
let db = Arc::new(MemoryDB::open());
|
||||
let block_store = Arc::new(BeaconBlockStore::new(db.clone()));
|
||||
@@ -1,11 +1,11 @@
|
||||
mod beacon_chain_harness;
|
||||
mod benching_beacon_node;
|
||||
mod direct_beacon_node;
|
||||
mod direct_duties;
|
||||
mod test_rig;
|
||||
mod validator;
|
||||
|
||||
pub use self::beacon_chain_harness::BeaconChainHarness;
|
||||
pub use self::benching_beacon_node::BenchingBeaconNode;
|
||||
pub use self::direct_beacon_node::DirectBeaconNode;
|
||||
pub use self::direct_duties::DirectDuties;
|
||||
pub use self::test_rig::TestRig;
|
||||
pub use self::validator::TestValidator;
|
||||
|
||||
Reference in New Issue
Block a user