Add test for dumping the private key imported from descriptor
This commit is contained in:
1 parent
2857bc4a64
commit
53b7de629d
1 file changed
+4
@@ -620,6 +620,10 @@ class ImportMultiTest(BitcoinTestFramework):
|
|||||||
solvable=True,
|
solvable=True,
|
||||||
ismine=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
|
# Test importing of a P2PKH address via descriptor
|
||||||
key = get_key(self.nodes[0])
|
key = get_key(self.nodes[0])
|
||||||
self.log.info("Should import a p2pkh address from descriptor")
|
self.log.info("Should import a p2pkh address from descriptor")
|
||||||
|
|||||||
Reference in new issue
Block a user