mirror of
https://github.com/ElementsProject/elements.git
synced 2026-08-18 13:17:55 +02:00
miniscript: remove P2WSH-specific part of GetStackSize doc comment
This commit is contained in:
parent
128bc104ef
commit
ec0fc14a22
1 changed files with 1 additions and 2 deletions
|
|
@ -1491,8 +1491,7 @@ public:
|
|||
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());
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue