solana-tokens: optimize PickleDb dumps (#13879)

* 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
This commit is contained in:
Tyera Eulberg
2020-12-01 19:22:27 -07:00
committed by GitHub
parent 0a8bc347a1
commit 8c40dd34b2
6 changed files with 566 additions and 34 deletions

View File

@@ -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