descriptor: refuse to parse unspendable miniscript descriptors

It's possible for some unsatisfiable miniscripts to be considered sane.
Make sure we refuse to import those, as they would be unspendable.
This commit is contained in:
Antoine Poinsot
2023-07-01 11:59:11 +02:00
parent e3280eae1b
commit 639e3b6c97
2 changed files with 7 additions and 2 deletions

View File

@@ -1161,6 +1161,9 @@ public:
return true;
}
//! Whether no satisfaction exists for this node.
bool IsNotSatisfiable() const { return !GetStackSize(); }
//! Return the expression type.
Type GetType() const { return typ; }