mirror of
https://github.com/bitcoin/bitcoin.git
synced 2025-07-28 17:53:04 +02:00
rpc, wallet: Document and test mempool scan after importprivkey
co-authored-by: Fabian Jahr <fjahr@protonmail.com>
This commit is contained in:
committed by
Fabian Jahr
parent
3abdbbb90a
commit
6d3db52e66
@@ -288,6 +288,10 @@ class WalletTest(BitcoinTestFramework):
|
||||
assert_equal(self.nodes[0].getbalances()['mine']['untrusted_pending'], Decimal('0.1'))
|
||||
assert_equal(self.nodes[0].getbalances()['watchonly']['untrusted_pending'], 0)
|
||||
self.nodes[0].unloadwallet('w1')
|
||||
# check importprivkey on fresh wallet
|
||||
self.nodes[0].createwallet('w2', False, True)
|
||||
self.nodes[0].importprivkey(privkey)
|
||||
assert_equal(self.nodes[0].getbalances()['mine']['untrusted_pending'], Decimal('0.1'))
|
||||
|
||||
|
||||
if __name__ == '__main__':
|
||||
|
Reference in New Issue
Block a user