@@ -98,8 +98,8 @@ pub struct RawParameters {
9898    pub  vote_generation_cpu_time_ms_per_ib :  f64 , 
9999    pub  vote_validation_cpu_time_ms :  f64 , 
100100    pub  vote_threshold :  u64 , 
101-     //  pub vote_size_bytes_constant : u64,
102-     //  pub vote_size_bytes_per_node : u64,
101+     pub  vote_bundle_size_bytes_constant :  u64 , 
102+     pub  vote_bundle_size_bytes_per_eb :  u64 , 
103103
104104    // Certificate configuration 
105105    pub  cert_generation_cpu_time_ms_constant :  f64 , 
@@ -311,6 +311,8 @@ pub(crate) struct BlockSizeConfig {
311311    pub  ib_header :  u64 , 
312312    eb_constant :  u64 , 
313313    eb_per_ib :  u64 , 
314+     vote_constant :  u64 , 
315+     vote_per_eb :  u64 , 
314316} 
315317
316318impl  BlockSizeConfig  { 
@@ -322,6 +324,8 @@ impl BlockSizeConfig {
322324            ib_header :  params. ib_head_size_bytes , 
323325            eb_constant :  params. eb_size_bytes_constant , 
324326            eb_per_ib :  params. eb_size_bytes_per_ib , 
327+             vote_constant :  params. vote_bundle_size_bytes_constant , 
328+             vote_per_eb :  params. vote_bundle_size_bytes_per_eb , 
325329        } 
326330    } 
327331
@@ -332,6 +336,10 @@ impl BlockSizeConfig {
332336    pub  fn  eb ( & self ,  ibs :  usize )  -> u64  { 
333337        self . eb_constant  + self . eb_per_ib  *  ibs as  u64 
334338    } 
339+ 
340+     pub  fn  vote_bundle ( & self ,  ebs :  usize )  -> u64  { 
341+         self . vote_constant  + self . vote_per_eb  *  ebs as  u64 
342+     } 
335343} 
336344
337345#[ derive( Debug ,  Clone ) ]  
0 commit comments