Skip to content

Commit

Permalink
miniscript: remove P2WSH-specific part of GetStackSize doc comment
Browse files Browse the repository at this point in the history
  • Loading branch information
darosior committed Oct 8, 2023
1 parent aae42c8 commit 520fcd3
Showing 1 changed file with 1 addition and 2 deletions.
3 changes: 1 addition & 2 deletions src/script/miniscript.h
Original file line number Diff line number Diff line change
Expand Up @@ -1491,8 +1491,7 @@ struct Node {
return !((GetType() & "BKW"_mst) == ""_mst);
}

/** Return the maximum number of stack elements needed to satisfy this script non-malleably.
* This does not account for the P2WSH script push. */
/** Return the maximum number of stack elements needed to satisfy this script non-malleably. */
std::optional<uint32_t> GetStackSize() const {
if (!ss.sat.valid) return {};
return ss.sat.netdiff + static_cast<int32_t>(IsBKW());
Expand Down

0 comments on commit 520fcd3

Please sign in to comment.