mirror of
https://github.com/bitcoin/bitcoin.git
synced 2025-06-29 18:20:58 +02:00
Add test for dumping the private key imported from descriptor
This commit is contained in:
@ -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")
|
||||
|
Reference in New Issue
Block a user