libitx / txforge

Modern Bitcoin transaction builder, capable of supporting any non-standard and custom script type.

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Error in build logic missing changeScript in some instances

libitx opened this issue · comments

commented

In some cases the changeScript is not built despite it being set.

Issue appears to be here as length is undefined on a Script instance. Need to measure length of the binary script.

const changeSize = this.changeScript.length +

Dont understand why this works some times but not others. Should fail all the time. Needs more digging.