mirror of
https://github.com/sigp/lighthouse.git
synced 2026-03-19 12:56:12 +00:00
Shorten slot time for simulator
This commit is contained in:
@@ -170,7 +170,7 @@ pub struct Environment<E: EthSpec> {
|
||||
runtime: Runtime,
|
||||
log: Logger,
|
||||
eth_spec_instance: E,
|
||||
eth2_config: Eth2Config,
|
||||
pub eth2_config: Eth2Config,
|
||||
}
|
||||
|
||||
impl<E: EthSpec> Environment<E> {
|
||||
|
||||
@@ -28,6 +28,8 @@ fn simulation(num_nodes: usize, validators_per_node: usize) -> Result<(), String
|
||||
.multi_threaded_tokio_runtime()?
|
||||
.build()?;
|
||||
|
||||
env.eth2_config.spec.milliseconds_per_slot = 2_000;
|
||||
|
||||
let mut base_config = testing_client_config();
|
||||
|
||||
let now = SystemTime::now()
|
||||
|
||||
Reference in New Issue
Block a user