client/: get_transaction_count() now returns a Result

This commit is contained in:
Michael Vines
2019-03-16 22:50:02 -07:00
parent 73ceaf07b1
commit ac03c59b41
5 changed files with 22 additions and 17 deletions

View File

@@ -106,7 +106,7 @@ fn main() {
let mut blockhash = client.get_recent_blockhash();
println!("Got last ID {:?}", blockhash);
let first_tx_count = client.transaction_count();
let first_tx_count = client.get_transaction_count().expect("transaction count");
println!("Initial transaction count {}", first_tx_count);
let exit_signal = Arc::new(AtomicBool::new(false));