aboutsummaryrefslogtreecommitdiff
path: root/src/script
diff options
context:
space:
mode:
authorAntoine Poinsot <darosior@protonmail.com>2023-10-06 12:30:46 +0200
committerAntoine Poinsot <darosior@protonmail.com>2023-10-08 02:43:27 +0200
commitec0fc14a22f38b487929ec21145945966f301eb5 (patch)
treec183be4f6dc9a74517483af6a5e2ccc7c4bd91f5 /src/script
parent128bc104ef07e1edaad5378e2ca53e97672a1652 (diff)
downloadbitcoin-ec0fc14a22f38b487929ec21145945966f301eb5.tar.xz
miniscript: remove P2WSH-specific part of GetStackSize doc comment
Diffstat (limited to 'src/script')
-rw-r--r--src/script/miniscript.h3
1 files changed, 1 insertions, 2 deletions
diff --git a/src/script/miniscript.h b/src/script/miniscript.h
index 48f39262cc..d6bded959d 100644
--- a/src/script/miniscript.h
+++ b/src/script/miniscript.h
@@ -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());