Account type with state

comments

fixups!

fixups!

fixups for a real Result<> from get_balance()

on 2nd thought, be more rigorous

Merge branch 'rob-solana-accounts_with_state' into accounts_with_state

update

review comments

comments

get rid of option
This commit is contained in:
Anatoly Yakovenko
2018-08-10 21:13:34 -07:00
committed by Rob Walker
parent fc0d7f5982
commit a284030ecc
10 changed files with 323 additions and 192 deletions

View File

@ -177,12 +177,12 @@ fn test_multi_node_ledger_window() -> result::Result<()> {
loop {
let mut client = mk_client(&validator_data);
let bal = client.poll_get_balance(&bob_pubkey)?;
if bal == leader_balance {
let bal = client.poll_get_balance(&bob_pubkey);
info!("bob balance on validator {:?}...", bal);
if bal.unwrap_or(0) == leader_balance {
break;
}
sleep(Duration::from_millis(300));
info!("bob balance on validator {}...", bal);
}
info!("done!");