aboutsummaryrefslogtreecommitdiff
path: root/test
diff options
context:
space:
mode:
authorJoão Barbosa <joao.paulo.barbosa@gmail.com>2020-05-12 23:34:04 +0100
committerFabian Jahr <fjahr@protonmail.com>2022-07-03 21:06:49 +0200
commit6d3db52e667474b6c0c2e4eeb9fb5b3ba4063205 (patch)
treea39d06492a22462e5066d2684473320756b94ba9 /test
parent3abdbbb90a4a8f2041fec37506268e66a0b3eb31 (diff)
downloadbitcoin-6d3db52e667474b6c0c2e4eeb9fb5b3ba4063205.tar.xz
rpc, wallet: Document and test mempool scan after importprivkey
co-authored-by: Fabian Jahr <fjahr@protonmail.com>
Diffstat (limited to 'test')
-rwxr-xr-xtest/functional/wallet_balance.py4
1 files changed, 4 insertions, 0 deletions
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__':