diff options
author | Antoine Poinsot <darosior@protonmail.com> | 2022-11-25 10:45:55 +0100 |
---|---|---|
committer | Antoine Poinsot <darosior@protonmail.com> | 2023-08-25 12:40:12 +0200 |
commit | 10546a569c6c96a5ec1b9708abf9ff5c8644f669 (patch) | |
tree | 51942798a796e8d8b2c8c6c0f61d7b9bb0e3c3d7 /src/test/miniscript_tests.cpp | |
parent | 9b7ec393b82ca9d7ada77d06e0835df0386a8b85 (diff) |
wallet: accurately account for the size of the witness stack
When estimating the maximum size of an input, we were assuming the
number of elements on the witness stack could be encode in a single
byte. This is a valid approximation for all the descriptors we support
(including P2WSH Miniscript ones), but may not hold anymore once we
support Miniscript within Taproot descriptors (since the max standard
witness stack size of 100 gets lifted).
It's a low-hanging fruit to account for it correctly, so just do it now.
Diffstat (limited to 'src/test/miniscript_tests.cpp')
0 files changed, 0 insertions, 0 deletions