File tree 2 files changed +10
-3
lines changed
2 files changed +10
-3
lines changed Original file line number Diff line number Diff line change @@ -60,6 +60,7 @@ cfg-if = "1.0"
60
60
61
61
[features ]
62
62
coconut = [" coconut-interface" , " credentials" , " gateway-client/coconut" ]
63
+ no-reward = []
63
64
64
65
[build-dependencies ]
65
66
tokio = { version = " 1.4" , features = [" rt-multi-thread" , " macros" ] }
Original file line number Diff line number Diff line change @@ -365,18 +365,24 @@ impl<C> Client<C> {
365
365
where
366
366
C : SigningCosmWasmClient + Sync ,
367
367
{
368
- let msgs: Vec < ( ExecuteMsg , _ ) > = nodes
368
+ cfg_if:: cfg_if! {
369
+ if #[ cfg( feature = "no-reward" ) ] {
370
+ Ok ( vec![ ] )
371
+ } else {
372
+ let msgs: Vec <( ExecuteMsg , _) > = nodes
369
373
. iter( )
370
374
. map( |node| node. to_reward_execute_msg( interval_id) )
371
375
. zip( std:: iter:: repeat( Vec :: new( ) ) )
372
376
. collect( ) ;
373
377
378
+ Ok ( msgs)
379
+ }
380
+ }
381
+
374
382
// let memo = format!("rewarding {} mixnodes", msgs.len());
375
383
376
384
// self.execute_multiple_with_retry(msgs, Default::default(), memo)
377
385
// .await
378
-
379
- Ok ( msgs)
380
386
}
381
387
382
388
async fn execute_multiple_with_retry < M > (
You can’t perform that action at this time.
0 commit comments