Add transaction mode to dos (#20191) (#20329)

(cherry picked from commit 94a1a57106)

Co-authored-by: sakridge <sakridge@gmail.com>
This commit is contained in:
mergify[bot]
2021-09-29 23:53:15 +00:00
committed by GitHub
parent 5d8429d953
commit 8178db52a5
3 changed files with 7 additions and 0 deletions

View File

@@ -79,6 +79,10 @@ fn run_dos(
"random" => {
data.resize(data_size, 0);
}
"transaction" => {
let tx = solana_perf::test_tx::test_tx();
data = bincode::serialize(&tx).unwrap();
}
"get_account_info" => {}
"get_program_accounts" => {}
&_ => {
@@ -183,6 +187,7 @@ fn main() {
"random",
"get_account_info",
"get_program_accounts",
"transaction",
])
.help("Type of data to send"),
)