mirror of
https://github.com/lightninglabs/pool.git
synced 2026-08-14 12:43:03 +02:00
In this commit, we fix a few lingering errors in witness size estimation. Both the witness paths were missing a single byte that signals the number of witness elements. We also convert the OP_DATAs in the witness script to a varint length, as that more accurately reflects the way the field is interpreted, as we provide the witness stack as is, rather than pushing elements onto the stack as if it were a sigScript. Finally, we add a missing byte for the size of the witness script itself. |
||
|---|---|---|
| .. | ||
| script.go | ||