tests/integration: change hodlDate to T+2 hours
This commit is contained in:
parent
b5d1b4a0da
commit
b077d7089d
1 changed files with 2 additions and 2 deletions
|
@ -74,8 +74,8 @@ describe('bitcoinjs-lib (advanced)', function () {
|
|||
var unspent = unspents.pop()
|
||||
var tx = new bitcoin.TransactionBuilder(network)
|
||||
|
||||
// now + 1 month
|
||||
var hodlDate = Math.floor((Date.now() + new Date(0).setMonth(1)) / 1000)
|
||||
// now + 2 hours
|
||||
var hodlDate = Math.floor((Date.now() + new Date(0).setSeconds(7200)) / 1000)
|
||||
var hodlLockTimeBuffer = new Buffer(4)
|
||||
hodlLockTimeBuffer.writeInt32LE(hodlDate | 0, 0)
|
||||
|
||||
|
|
Loading…
Reference in a new issue