aboutsummaryrefslogtreecommitdiff
path: root/test
diff options
context:
space:
mode:
authorMeshCollider <dobsonsa68@gmail.com>2019-06-08 01:34:58 +1200
committerMeshCollider <dobsonsa68@gmail.com>2019-06-08 01:34:58 +1200
commit53b7de629d3d9281dc6f8fa10e32c4cdec59c140 (patch)
treed91db38d1545a874c3d66c309a8207b2ff7036bd /test
parent2857bc4a64cc8dc7914bc984ac878397ac64292d (diff)
Add test for dumping the private key imported from descriptor
Diffstat (limited to 'test')
-rwxr-xr-xtest/functional/wallet_importmulti.py4
1 files changed, 4 insertions, 0 deletions
diff --git a/test/functional/wallet_importmulti.py b/test/functional/wallet_importmulti.py
index 12287d0df6..e19c7919a9 100755
--- a/test/functional/wallet_importmulti.py
+++ b/test/functional/wallet_importmulti.py
@@ -620,6 +620,10 @@ class ImportMultiTest(BitcoinTestFramework):
solvable=True,
ismine=True)
+ # dump the private key to ensure it matches what was imported
+ privkey = self.nodes[1].dumpprivkey(address)
+ assert_equal(privkey, wif_priv)
+
# Test importing of a P2PKH address via descriptor
key = get_key(self.nodes[0])
self.log.info("Should import a p2pkh address from descriptor")