From 53b7de629d3d9281dc6f8fa10e32c4cdec59c140 Mon Sep 17 00:00:00 2001 From: MeshCollider Date: Sat, 8 Jun 2019 01:34:58 +1200 Subject: [PATCH] Add test for dumping the private key imported from descriptor --- test/functional/wallet_importmulti.py | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/test/functional/wallet_importmulti.py b/test/functional/wallet_importmulti.py index 12287d0df687f..e19c7919a9669 100755 --- a/test/functional/wallet_importmulti.py +++ b/test/functional/wallet_importmulti.py @@ -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")