Skip to content

Commit e8661aa

Browse files
committed
wallet: drop watch-only things from interface
1 parent e99188e commit e8661aa

File tree

2 files changed

+1
-8
lines changed

2 files changed

+1
-8
lines changed

src/interfaces/wallet.h

Lines changed: 1 addition & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -372,17 +372,11 @@ struct WalletBalances
372372
CAmount balance = 0;
373373
CAmount unconfirmed_balance = 0;
374374
CAmount immature_balance = 0;
375-
bool have_watch_only = false;
376-
CAmount watch_only_balance = 0;
377-
CAmount unconfirmed_watch_only_balance = 0;
378-
CAmount immature_watch_only_balance = 0;
379375

380376
bool balanceChanged(const WalletBalances& prev) const
381377
{
382378
return balance != prev.balance || unconfirmed_balance != prev.unconfirmed_balance ||
383-
immature_balance != prev.immature_balance || watch_only_balance != prev.watch_only_balance ||
384-
unconfirmed_watch_only_balance != prev.unconfirmed_watch_only_balance ||
385-
immature_watch_only_balance != prev.immature_watch_only_balance;
379+
immature_balance != prev.immature_balance;
386380
}
387381
};
388382

src/wallet/interfaces.cpp

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -399,7 +399,6 @@ class WalletImpl : public Wallet
399399
result.balance = bal.m_mine_trusted;
400400
result.unconfirmed_balance = bal.m_mine_untrusted_pending;
401401
result.immature_balance = bal.m_mine_immature;
402-
result.have_watch_only = false;
403402
return result;
404403
}
405404
bool tryGetBalances(WalletBalances& balances, uint256& block_hash) override

0 commit comments

Comments
 (0)