From fa0f32f25f2b970c3dd4badf6394cf0eb78c1d7b Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Micha=C5=82=20Strug?= Date: Fri, 27 Oct 2023 16:32:15 +0200 Subject: [PATCH] Renamed command parameters --- simulator/src/replay/cmd_alloc_dump.rs | 23 +++++++++++++---------- 1 file changed, 13 insertions(+), 10 deletions(-) diff --git a/simulator/src/replay/cmd_alloc_dump.rs b/simulator/src/replay/cmd_alloc_dump.rs index 4e134b3fd5c..277a640aaf5 100644 --- a/simulator/src/replay/cmd_alloc_dump.rs +++ b/simulator/src/replay/cmd_alloc_dump.rs @@ -41,15 +41,15 @@ pub struct TxnAllocDump { #[clap(short, long)] pub max_version: Option, - /// Ignore dump of user type of transactions + /// Exclude user type of transactions from output data #[clap(long)] - pub ignore_dump_user_tx: bool, - /// Dump genesis type of transactions + pub exclude_user_transaction: bool, + /// Include genesis type of transactions in output data #[clap(short = 'g', long)] - pub dump_genesis_tx: bool, - /// Dump round update type of transactions + pub include_generic_transaction: bool, + /// Include round update type of transactions in output data #[clap(short = 'r', long)] - pub dump_round_update_tx: bool, + pub include_round_update_transaction: bool, } impl TxnAllocDump { @@ -69,7 +69,10 @@ impl TxnAllocDump { }; let to_version = self.max_version.clone(); - if self.ignore_dump_user_tx && !self.dump_genesis_tx && !self.dump_round_update_tx { + if self.exclude_user_transaction + && !self.include_generic_transaction + && !self.include_round_update_transaction + { println!("Nothing selected to dump."); return Ok(()); } @@ -109,9 +112,9 @@ impl TxnAllocDump { } let (dump_user, dump_genesis, dump_round) = ( - !self.ignore_dump_user_tx, - self.dump_genesis_tx, - self.dump_round_update_tx, + !self.exclude_user_transaction, + self.include_generic_transaction, + self.include_round_update_transaction, ); let txn_write_thread_handle = thread::spawn(move || { let scrypto_vm = ScryptoVm::::default();