mirror of
https://github.com/bitcoin/bitcoin.git
synced 2025-11-11 06:28:31 +01:00
GUI: add getter for WalletModel::m_cached_balances field
No need to guard it as it is/will only be accessed from the main thread for now
This commit is contained in:
@@ -120,12 +120,17 @@ void WalletModel::pollBalanceChanged()
|
||||
|
||||
void WalletModel::checkBalanceChanged(const interfaces::WalletBalances& new_balances)
|
||||
{
|
||||
if(new_balances.balanceChanged(m_cached_balances)) {
|
||||
if (new_balances.balanceChanged(m_cached_balances)) {
|
||||
m_cached_balances = new_balances;
|
||||
Q_EMIT balanceChanged(new_balances);
|
||||
}
|
||||
}
|
||||
|
||||
interfaces::WalletBalances WalletModel::getCachedBalance() const
|
||||
{
|
||||
return m_cached_balances;
|
||||
}
|
||||
|
||||
void WalletModel::updateTransaction()
|
||||
{
|
||||
// Balance and number of transactions might have changed
|
||||
|
||||
Reference in New Issue
Block a user