0
0
Fork 0
mirror of https://github.com/bitcoin/bitcoin.git synced 2025-02-02 09:46:52 -05:00

miniscript: remove P2WSH-specific part of GetStackSize doc comment

This commit is contained in:
Antoine Poinsot 2023-10-06 12:30:46 +02:00
parent 128bc104ef
commit ec0fc14a22
No known key found for this signature in database
GPG key ID: E13FC145CD3F4304

View file

@ -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());