gui: Avoid Wallet::GetBalance in WalletModel::pollBalanceChanged

This commit is contained in:
João Barbosa
2020-02-16 11:38:49 +00:00
parent 2a2631fb0d
commit 0933a37078
3 changed files with 15 additions and 14 deletions

View File

@@ -201,8 +201,11 @@ public:
//! Get balances.
virtual WalletBalances getBalances() = 0;
//! Get balances if possible without blocking.
virtual bool tryGetBalances(WalletBalances& balances, int& num_blocks) = 0;
//! Get balances if possible without waiting for chain and wallet locks.
virtual bool tryGetBalances(WalletBalances& balances,
int& num_blocks,
bool force,
int cached_num_blocks) = 0;
//! Get balance.
virtual CAmount getBalance() = 0;