From 6d3db52e667474b6c0c2e4eeb9fb5b3ba4063205 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Jo=C3=A3o=20Barbosa?= Date: Tue, 12 May 2020 23:34:04 +0100 Subject: rpc, wallet: Document and test mempool scan after importprivkey co-authored-by: Fabian Jahr --- test/functional/wallet_balance.py | 4 ++++ 1 file changed, 4 insertions(+) (limited to 'test/functional/wallet_balance.py') diff --git a/test/functional/wallet_balance.py b/test/functional/wallet_balance.py index 94b74c0696..d49bca6855 100755 --- a/test/functional/wallet_balance.py +++ b/test/functional/wallet_balance.py @@ -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__': -- cgit v1.2.3