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 d37485f commit fa2fa68Copy full SHA for fa2fa68
bitcoin/script/miniscript.h
@@ -784,7 +784,10 @@ struct Node {
784
bool NeedsSignature() const { return GetType() << "s"_mst; }
785
786
//! Do all sanity checks.
787
- bool IsSafeTopLevel() const { return GetType() << "Bmsk"_mst && CheckOpsLimit() && CheckStackSize(); }
+ bool IsSafe() const { return GetType() << "msk"_mst && CheckOpsLimit() && CheckStackSize() && IsValid(); }
788
+
789
+ //! Check whether this node is safe as a script on its own.
790
+ bool IsSafeTopLevel() const { return GetType() << "B"_mst && IsSafe() && IsValidTopLevel(); }
791
792
//! Construct the script for this miniscript (including subexpressions).
793
template<typename Ctx>
0 commit comments