TxBuilder: copy version/locktime in fromTransaction
This commit is contained in:
parent
510212a3bd
commit
a529b3fa0b
3 changed files with 31 additions and 0 deletions
|
@ -196,6 +196,10 @@ describe('TransactionBuilder', function() {
|
|||
})
|
||||
})
|
||||
|
||||
// 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
|
||||
|
||||
var tx = txb.build()
|
||||
|
||||
assert.equal(tx.getId(), f.txid)
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue