Rename "TestRig" to "BeaconChainHarness"

This commit is contained in:
Paul Hauner
2019-01-27 14:25:26 +11:00
parent e3115d2105
commit 1082c8857a
3 changed files with 7 additions and 7 deletions

View File

@@ -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()));

View File

@@ -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;