pool/clmscript
Olaoluwa Osuntokun 369ea2aa8e 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.
2020-03-09 20:00:20 -07:00
..
script.go client/clmscript: fix errors in witness size estimation 2020-03-09 20:00:20 -07:00