mirror of
https://github.com/bitcoin/bitcoin.git
synced 2025-08-30 21:31:18 +02:00
wallet: Remove watchonly balances
Descriptor wallets do not have mixed mine and watchonly, so there is no need to report a watchonly balance.
This commit is contained in:
@@ -145,14 +145,10 @@ class WalletTest(BitcoinTestFramework):
|
||||
# getbalances
|
||||
expected_balances_0 = {'mine': {'immature': Decimal('0E-8'),
|
||||
'trusted': Decimal('9.99'), # change from node 0's send
|
||||
'untrusted_pending': Decimal('60.0')},
|
||||
'watchonly': {'immature': Decimal('5000'),
|
||||
'trusted': Decimal('50.0'),
|
||||
'untrusted_pending': Decimal('0E-8')}}
|
||||
'untrusted_pending': Decimal('60.0')}}
|
||||
expected_balances_1 = {'mine': {'immature': Decimal('0E-8'),
|
||||
'trusted': Decimal('0E-8'), # node 1's send had an unsafe input
|
||||
'untrusted_pending': Decimal('30.0') - fee_node_1}} # Doesn't include output of node 0's send since it was spent
|
||||
del expected_balances_0["watchonly"]
|
||||
balances_0 = self.nodes[0].getbalances()
|
||||
balances_1 = self.nodes[1].getbalances()
|
||||
# remove lastprocessedblock keys (they will be tested later)
|
||||
|
Reference in New Issue
Block a user