File tree Expand file tree Collapse file tree 1 file changed +3
-3
lines changed Expand file tree Collapse file tree 1 file changed +3
-3
lines changed Original file line number Diff line number Diff line change @@ -839,11 +839,11 @@ struct Node {
839
839
// ! Whether successful non-malleable satisfactions are guaranteed to be valid.
840
840
bool ValidSatisfactions () const { return IsValid () && CheckOpsLimit () && CheckStackSize (); }
841
841
842
- // ! Whether the apparent policy of this node matches its script semantics.
843
- bool IsSane () const { return ValidSatisfactions () && IsNonMalleable () && CheckTimeLocksMix () && CheckDuplicateKey (); }
842
+ // ! Whether the apparent policy of this node matches its script semantics. Doesn't guarantee it is a safe script on its own.
843
+ bool IsSaneSubexpression () const { return ValidSatisfactions () && IsNonMalleable () && CheckTimeLocksMix () && CheckDuplicateKey (); }
844
844
845
845
// ! Check whether this node is safe as a script on its own.
846
- bool IsSaneTopLevel () const { return IsValidTopLevel () && IsSane () && NeedsSignature (); }
846
+ bool IsSane () const { return IsValidTopLevel () && IsSaneSubexpression () && NeedsSignature (); }
847
847
848
848
// ! Equality testing.
849
849
bool operator ==(const Node<Key>& arg) const { return Compare (*this , arg) == 0 ; }
You can’t perform that action at this time.
0 commit comments