Add test for dumping the private key imported from descriptor

This commit is contained in:
MeshCollider 2019-06-08 01:34:58 +12:00
parent 2857bc4a64
commit 53b7de629d

View file

@ -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")