Skip to content

Commit

Permalink
Add test for dumping the private key imported from descriptor
Browse files Browse the repository at this point in the history
  • Loading branch information
meshcollider committed Jun 7, 2019
1 parent 2857bc4 commit 53b7de6
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions test/functional/wallet_importmulti.py
Original file line number Diff line number Diff line change
Expand Up @@ -620,6 +620,10 @@ def run_test(self):
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")
Expand Down

0 comments on commit 53b7de6

Please sign in to comment.