Take non-importing keys into account for spendability warning in descriptor import

Github-Pull: #15749
Rebased-From: b5d39877242504160a7f2c24c60c07a845d7a064
This commit is contained in:
Pieter Wuille
2019-04-06 08:23:19 -07:00
committed by MeshCollider
parent 802dcd37d1
commit 235550d019
2 changed files with 5 additions and 1 deletions
+2 -1
View File
@@ -630,7 +630,8 @@ class ImportMultiTest(BitcoinTestFramework):
self.log.info("Should import a 1-of-2 bare multisig from descriptor")
self.test_importmulti({"desc": descsum_create("multi(1," + key1.pubkey + "," + key2.pubkey + ")"),
"timestamp": "now"},
success=True)
success=True,
warnings=["Some private keys are missing, outputs will be considered watchonly. If this is intentional, specify the watchonly flag."])
self.log.info("Should not treat individual keys from the imported bare multisig as watchonly")
test_address(self.nodes[1],
key1.p2pkh_addr,