File tree Expand file tree Collapse file tree 4 files changed +8
-3
lines changed Expand file tree Collapse file tree 4 files changed +8
-3
lines changed Original file line number Diff line number Diff line change @@ -45,6 +45,8 @@ export interface Config {
4545 // Input Block Configuration
4646 "ib-generation-probability" : number ;
4747 "ib-generation-cpu-time-ms" : number ;
48+ /** Only supported by Rust simulation. */
49+ "ib-shards" : number ;
4850 /** Only supported by Haskell simulation. */
4951 "ib-head-size-bytes" : bigint ;
5052 "ib-head-validation-cpu-time-ms" : number ;
Original file line number Diff line number Diff line change @@ -58,6 +58,7 @@ rb-body-legacy-praos-payload-avg-size-bytes: 0
5858
5959ib-generation-probability : 5.0
6060ib-generation-cpu-time-ms : 300.0
61+ ib-shards : 1
6162ib-head-size-bytes : 32
6263ib-head-validation-cpu-time-ms : 1.0
6364ib-body-validation-cpu-time-ms-constant : 50.0
Original file line number Diff line number Diff line change 206206 "ib-head-validation-cpu-time-ms" : {
207207 "type" : " number"
208208 },
209+ "ib-shards" : {
210+ "description" : " Only supported by Rust simulation." ,
211+ "type" : " number"
212+ },
209213 "leios-stage-active-voting-slots" : {
210214 "additionalProperties" : false ,
211215 "properties" : {},
Original file line number Diff line number Diff line change @@ -5,7 +5,6 @@ use std::{
55} ;
66
77use anyhow:: { anyhow, bail, Result } ;
8- use num_traits:: One as _;
98use serde:: { Deserialize , Serialize } ;
109
1110use crate :: probability:: FloatDistribution ;
@@ -78,14 +77,13 @@ pub struct RawParameters {
7877 // Input block configuration
7978 pub ib_generation_probability : f64 ,
8079 pub ib_generation_cpu_time_ms : f64 ,
80+ pub ib_shards : u64 ,
8181 // pub ib_head_size_bytes: u64,
8282 pub ib_head_validation_cpu_time_ms : f64 ,
8383 pub ib_body_validation_cpu_time_ms_constant : f64 ,
8484 pub ib_body_validation_cpu_time_ms_per_byte : f64 ,
8585 pub ib_body_max_size_bytes : u64 ,
8686 pub ib_diffusion_strategy : DiffusionStrategy ,
87- #[ serde( default = "u64::one" ) ]
88- pub ib_shards : u64 ,
8987
9088 // Endorsement block configuration
9189 pub eb_generation_probability : f64 ,
You can’t perform that action at this time.
0 commit comments