We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 639e3b6 commit a49402aCopy full SHA for a49402a
test/functional/wallet_miniscript.py
@@ -277,6 +277,18 @@ def run_test(self):
277
assert not res["success"]
278
assert "is not sane: witnesses without signature exist" in res["error"]["message"]
279
280
+ # Sanity check we wouldn't let an unspendable Miniscript descriptor in
281
+ res = self.ms_wo_wallet.importdescriptors(
282
+ [
283
+ {
284
+ "desc": descsum_create("wsh(0)"),
285
+ "active": False,
286
+ "timestamp": "now",
287
+ }
288
+ ]
289
+ )[0]
290
+ assert not res["success"] and "is not satisfiable" in res["error"]["message"]
291
+
292
# Test we can track any type of Miniscript
293
for ms in MINISCRIPTS:
294
self.watchonly_test(ms)
0 commit comments