Skip to content

Commit

Permalink
feat: add burn-tari to make-it-rain (#5038)
Browse files Browse the repository at this point in the history
Description
---
Added BurnTari to the MakeItRain command for the console wallet.

Motivation and Context
---
We needed to do some 'burn-tari' stress tests

How Has This Been Tested?
---
System level testing
  • Loading branch information
hansieodendaal authored Dec 12, 2022
1 parent aecafb8 commit 62dfd38
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -437,6 +437,7 @@ pub async fn make_it_rain(
)
.await
},
MakeItRainTransactionType::BurnTari => burn_tari(tx_service, fee, amount, msg.clone()).await,
};
let submit_time = Instant::now();

Expand Down
5 changes: 5 additions & 0 deletions applications/tari_console_wallet/src/cli.rs
Original file line number Diff line number Diff line change
Expand Up @@ -173,6 +173,8 @@ pub struct MakeItRainArgs {
pub one_sided: bool,
#[clap(long, alias = "stealth-one-sided")]
pub stealth: bool,
#[clap(short, long)]
pub burn_tari: bool,
#[clap(short, long, default_value = "Make it rain")]
pub message: String,
}
Expand All @@ -183,6 +185,8 @@ impl MakeItRainArgs {
MakeItRainTransactionType::StealthOneSided
} else if self.one_sided {
MakeItRainTransactionType::OneSided
} else if self.burn_tari {
MakeItRainTransactionType::BurnTari
} else {
MakeItRainTransactionType::Interactive
}
Expand All @@ -194,6 +198,7 @@ pub enum MakeItRainTransactionType {
Interactive,
OneSided,
StealthOneSided,
BurnTari,
}

impl Display for MakeItRainTransactionType {
Expand Down

0 comments on commit 62dfd38

Please sign in to comment.