File tree Expand file tree Collapse file tree 3 files changed +7
-4
lines changed
mithril-test-lab/mithril-end-to-end/src Expand file tree Collapse file tree 3 files changed +7
-4
lines changed Original file line number Diff line number Diff line change @@ -16,10 +16,10 @@ pub async fn bootstrap_genesis_certificate(aggregator: &mut Aggregator) -> StdRe
16
16
Ok ( ( ) )
17
17
}
18
18
19
- pub async fn delegate_stakes_to_pools ( devnet : & Devnet ) -> StdResult < ( ) > {
19
+ pub async fn delegate_stakes_to_pools ( devnet : & Devnet , delegation_round : u16 ) -> StdResult < ( ) > {
20
20
info ! ( "Delegate stakes to the cardano pools" ) ;
21
21
22
- devnet. delegate_stakes ( ) . await ?;
22
+ devnet. delegate_stakes ( delegation_round ) . await ?;
23
23
24
24
Ok ( ( ) )
25
25
}
Original file line number Diff line number Diff line change @@ -204,13 +204,14 @@ impl Devnet {
204
204
}
205
205
}
206
206
207
- pub async fn delegate_stakes ( & self ) -> StdResult < ( ) > {
207
+ pub async fn delegate_stakes ( & self , delegation_round : u16 ) -> StdResult < ( ) > {
208
208
let run_script = "delegate.sh" ;
209
209
let run_script_path = self . artifacts_dir . join ( run_script) ;
210
210
let mut run_command = Command :: new ( & run_script_path) ;
211
211
run_command
212
212
. current_dir ( & self . artifacts_dir )
213
213
. kill_on_drop ( true ) ;
214
+ run_command. env ( "DELEGATION_ROUND" , delegation_round. to_string ( ) ) ;
214
215
215
216
info ! ( "Delegating stakes to the pools" ; "script" => & run_script_path. display( ) ) ;
216
217
Original file line number Diff line number Diff line change @@ -42,7 +42,9 @@ impl<'a> Spec<'a> {
42
42
"epoch after which the stake distribution will change" . to_string ( ) ,
43
43
)
44
44
. await ?;
45
- assertions:: delegate_stakes_to_pools ( self . infrastructure . devnet ( ) ) . await ?;
45
+ let delegation_round = 1 ;
46
+ assertions:: delegate_stakes_to_pools ( self . infrastructure . devnet ( ) , delegation_round)
47
+ . await ?;
46
48
47
49
// Wait 2 epochs before changing protocol parameters
48
50
target_epoch += 2 ;
You can’t perform that action at this time.
0 commit comments