diff options
| author | Russell Yanofsky <[email protected]> | 2020-04-02 07:42:01 -0400 |
|---|---|---|
| committer | Russell Yanofsky <[email protected]> | 2020-05-01 06:59:09 -0400 |
| commit | bf0a510981ddc28c754881ca21c50ab18e5f2b59 (patch) | |
| tree | ca23a8d61bb56a3f323fcfd2b65797b718da2404 /src/interfaces/node.cpp | |
| parent | Cancel wallet balance timer when shutdown requested (diff) | |
| download | discoin-bf0a510981ddc28c754881ca21c50ab18e5f2b59.tar.xz discoin-bf0a510981ddc28c754881ca21c50ab18e5f2b59.zip | |
gui: Avoid wallet tryGetBalances calls before TransactionChanged or BlockTip notifications
interfaces::Wallet::tryGetBalances was recently updated in
https://github.com/bitcoin/bitcoin/pull/18160 to avoid computing balances
internally, but this not efficient as it could be with #10102 because
tryGetBalances is an interprocess call.
Implementing the TransactionChanged / BlockTip check outside of tryGetBalances
also allows tryGetBalances to be simplified in next commit 'Revert "gui: Avoid
Wallet::GetBalance in WalletModel::pollBalanceChanged"'.
Diffstat (limited to 'src/interfaces/node.cpp')
0 files changed, 0 insertions, 0 deletions