miniscript: remove P2WSH-specific part of GetStackSize doc comment

This commit is contained in:
Antoine Poinsot committed 2023-10-08 02:43:27 +02:00
1 parent 128bc104ef
commit ec0fc14a22
1 file changed
+1 -2
+1 -2
View File
@@ -1491,8 +1491,7 @@ public:
return !((GetType() & "BKW"_mst) == ""_mst); return !((GetType() & "BKW"_mst) == ""_mst);
} }
/** Return the maximum number of stack elements needed to satisfy this script non-malleably. /** Return the maximum number of stack elements needed to satisfy this script non-malleably. */
* This does not account for the P2WSH script push. */
std::optional<uint32_t> GetStackSize() const { std::optional<uint32_t> GetStackSize() const {
if (!ss.sat.valid) return {}; if (!ss.sat.valid) return {};
return ss.sat.netdiff + static_cast<int32_t>(IsBKW()); return ss.sat.netdiff + static_cast<int32_t>(IsBKW());