Allow clients to sync the ledger

Fixes #4
This commit is contained in:
Greg Fitzgerald
2018-03-21 15:43:39 -06:00
parent 8295cc11c0
commit 9f232bac58
3 changed files with 26 additions and 21 deletions

View File

@@ -65,7 +65,7 @@ fn main() {
acc.transfer_signed(tr).unwrap();
}
println!("Waiting for last transaction to be confirmed...",);
acc.wait_on_signature(&sig).unwrap();
acc.wait_on_signature(&sig, &last_id).unwrap();
let duration = now.elapsed();
let ns = duration.as_secs() * 1_000_000_000 + duration.subsec_nanos() as u64;