accounts should never be negative (#1083)

This commit is contained in:
anatoly yakovenko
2018-09-04 06:43:18 -10:00
committed by Greg Fitzgerald
parent 05f921d544
commit 501deeef56

View File

@ -291,11 +291,11 @@ impl ThinClient {
ThinClient::submit_poll_balance_metrics(&now.elapsed());
return Err(e);
}
-1
0
}
};
if balance >= 0 {
if balance != 0 {
ThinClient::submit_poll_balance_metrics(&now.elapsed());
return Ok(balance);
}