Skip to content

Commit

Permalink
solana-tokens: optimize PickleDb dumps (#13879)
Browse files Browse the repository at this point in the history
* Dump PickleDb after transaction sends/confirmation

* Dump PickleDb on ctrlc

* Don't exit during tests

* Add build_messages helper and test db dump

* Add send_messages helper and test db dump

* Add combined test

* Add log_transaction_confirmations helper and test db dump

* Add update_finalized_transactions test

* Return error instead of process::exit

* Close TestValidator
  • Loading branch information
CriesofCarrots authored Dec 2, 2020
1 parent 0a8bc34 commit 8c40dd3
Show file tree
Hide file tree
Showing 6 changed files with 566 additions and 34 deletions.
1 change: 1 addition & 0 deletions Cargo.lock

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

1 change: 1 addition & 0 deletions tokens/Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -13,6 +13,7 @@ chrono = { version = "0.4", features = ["serde"] }
clap = "2.33.0"
console = "0.11.3"
csv = "1.1.3"
ctrlc = { version = "3.1.5", features = ["termination"] }
dirs-next = "2.0.0"
indexmap = "1.5.1"
indicatif = "0.15.0"
Expand Down
4 changes: 1 addition & 3 deletions tokens/src/arg_parser.rs
Original file line number Diff line number Diff line change
Expand Up @@ -12,9 +12,7 @@ use solana_clap_utils::{
use solana_cli_config::CONFIG_FILE;
use solana_remote_wallet::remote_wallet::maybe_wallet_manager;
use solana_sdk::native_token::sol_to_lamports;
use std::error::Error;
use std::ffi::OsString;
use std::process::exit;
use std::{error::Error, ffi::OsString, process::exit};

fn get_matches<'a, I, T>(args: I) -> ArgMatches<'a>
where
Expand Down
Loading

0 comments on commit 8c40dd3

Please sign in to comment.