locktime and version were set too late in test scenario and not included when signing (the test scenario).

This commit is contained in:
Ruben de Vries 2016-01-26 17:12:43 +01:00
parent 96fb92feb5
commit ccec864785
2 changed files with 10 additions and 10 deletions

View file

@ -17,6 +17,15 @@ function construct (f, sign) {
var network = NETWORKS[f.network]
var txb = new TransactionBuilder(network)
// FIXME: add support for locktime/version in TransactionBuilder API
if (f.version !== undefined) {
txb.tx.version = f.version
}
if (f.locktime !== undefined) {
txb.tx.locktime = f.locktime
}
f.inputs.forEach(function (input) {
var prevTxScript
@ -46,15 +55,6 @@ function construct (f, sign) {
})
}
// FIXME: add support for locktime/version in TransactionBuilder API
if (f.version !== undefined) {
txb.tx.version = f.version
}
if (f.locktime !== undefined) {
txb.tx.locktime = f.locktime
}
return txb
}