Add transaction mode to dos (#20191)

This commit is contained in:
sakridge
2021-09-29 14:46:55 -07:00
committed by GitHub
parent 2ec74474e9
commit 94a1a57106
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"),
)