Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
client/clmscript: fix errors in witness size estimation
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.
- Loading branch information