File tree Expand file tree Collapse file tree 1 file changed +4
-1
lines changed Expand file tree Collapse file tree 1 file changed +4
-1
lines changed Original file line number Diff line number Diff line change @@ -776,8 +776,11 @@ struct Node {
776
776
// ! Check whether this script always needs a signature.
777
777
bool NeedsSignature () const { return GetType () << " s" _mst; }
778
778
779
+ // ! Check whether there is no satisfaction path that contains both timelocks and heightlocks
780
+ bool CheckTimeLocksMix () const { return GetType () << " k" _mst; }
781
+
779
782
// ! Do all sanity checks.
780
- bool IsSane () const { return IsValid () && GetType () << " mk " _mst && CheckOpsLimit () && CheckStackSize (); }
783
+ bool IsSane () const { return IsValid () && IsNonMalleable () && CheckTimeLocksMix () && CheckOpsLimit () && CheckStackSize (); }
781
784
782
785
// ! Check whether this node is safe as a script on its own.
783
786
bool IsSaneTopLevel () const { return IsValidTopLevel () && IsSane () && NeedsSignature (); }
You can’t perform that action at this time.
0 commit comments