@@ -5,7 +5,7 @@ use crate::common::{
5
5
jormungandr:: ConfigurationBuilder ,
6
6
startup,
7
7
} ;
8
- use jormungandr_lib:: interfaces:: Value ;
8
+ use jormungandr_lib:: interfaces:: { ActiveSlotCoefficient , KESUpdateSpeed , Value } ;
9
9
use std:: iter;
10
10
use std:: time:: SystemTime ;
11
11
@@ -35,9 +35,9 @@ fn send_100_transaction_in_10_packs_for_recievers(
35
35
& [ sender. clone ( ) ] ,
36
36
ConfigurationBuilder :: new ( )
37
37
. with_slots_per_epoch ( 60 )
38
- . with_consensus_genesis_praos_active_slot_coeff ( "0.999" )
38
+ . with_consensus_genesis_praos_active_slot_coeff ( ActiveSlotCoefficient :: MAXIMUM )
39
39
. with_slot_duration ( 2 )
40
- . with_kes_update_speed ( 43200 ) ,
40
+ . with_kes_update_speed ( KESUpdateSpeed :: new ( 43200 ) . unwrap ( ) ) ,
41
41
)
42
42
. unwrap ( ) ;
43
43
@@ -72,9 +72,9 @@ pub fn test_100_transaction_is_processed() {
72
72
& [ sender. clone ( ) ] ,
73
73
ConfigurationBuilder :: new ( )
74
74
. with_slots_per_epoch ( 60 )
75
- . with_consensus_genesis_praos_active_slot_coeff ( "0.999" )
75
+ . with_consensus_genesis_praos_active_slot_coeff ( ActiveSlotCoefficient :: MAXIMUM )
76
76
. with_slot_duration ( 4 )
77
- . with_kes_update_speed ( 43200 ) ,
77
+ . with_kes_update_speed ( KESUpdateSpeed :: new ( 43200 ) . unwrap ( ) ) ,
78
78
)
79
79
. unwrap ( ) ;
80
80
@@ -91,8 +91,7 @@ pub fn test_100_transaction_is_processed() {
91
91
92
92
sender. confirm_transaction ( ) ;
93
93
94
- let fragment_id =
95
- jcli_wrapper:: assert_transaction_in_block ( & transaction, & jormungandr. rest_address ( ) ) ;
94
+ jcli_wrapper:: assert_transaction_in_block ( & transaction, & jormungandr. rest_address ( ) ) ;
96
95
97
96
assert_funds_transferred_to ( & receiver. address , i. into ( ) , & jormungandr. rest_address ( ) ) ;
98
97
jormungandr. assert_no_errors_in_log ( ) ;
@@ -121,10 +120,10 @@ pub fn test_blocks_are_being_created_for_more_than_15_minutes() {
121
120
& [ sender. clone ( ) ] ,
122
121
ConfigurationBuilder :: new ( )
123
122
. with_slots_per_epoch ( 60 )
124
- . with_consensus_genesis_praos_active_slot_coeff ( "0.999" )
123
+ . with_consensus_genesis_praos_active_slot_coeff ( ActiveSlotCoefficient :: MAXIMUM )
125
124
. with_slot_duration ( 4 )
126
125
. with_epoch_stability_depth ( 10 )
127
- . with_kes_update_speed ( 43200 ) ,
126
+ . with_kes_update_speed ( KESUpdateSpeed :: new ( 43200 ) . unwrap ( ) ) ,
128
127
)
129
128
. unwrap ( ) ;
130
129
@@ -142,8 +141,7 @@ pub fn test_blocks_are_being_created_for_more_than_15_minutes() {
142
141
143
142
sender. confirm_transaction ( ) ;
144
143
145
- let fragment_id =
146
- jcli_wrapper:: assert_transaction_in_block ( & transaction, & jormungandr. rest_address ( ) ) ;
144
+ jcli_wrapper:: assert_transaction_in_block ( & transaction, & jormungandr. rest_address ( ) ) ;
147
145
148
146
// 900 s = 15 minutes
149
147
if now. elapsed ( ) . unwrap ( ) . as_secs ( ) > 900 {
0 commit comments