locktime and version were set too late in test scenario and not included when signing (the test scenario).
This commit is contained in:
parent
96fb92feb5
commit
ccec864785
2 changed files with 10 additions and 10 deletions
|
@ -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
|
||||
}
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue