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