Skip to content

Commit 53b7de6

Browse files
committed
Add test for dumping the private key imported from descriptor
1 parent 2857bc4 commit 53b7de6

File tree

1 file changed

+4
-0
lines changed

1 file changed

+4
-0
lines changed

test/functional/wallet_importmulti.py

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -620,6 +620,10 @@ def run_test(self):
620620
solvable=True,
621621
ismine=True)
622622

623+
# dump the private key to ensure it matches what was imported
624+
privkey = self.nodes[1].dumpprivkey(address)
625+
assert_equal(privkey, wif_priv)
626+
623627
# Test importing of a P2PKH address via descriptor
624628
key = get_key(self.nodes[0])
625629
self.log.info("Should import a p2pkh address from descriptor")

0 commit comments

Comments
 (0)