tests/integration: change hodlDate to T+2 hours

This commit is contained in:
Daniel Cousens 2015-12-22 14:17:41 +11:00
parent b5d1b4a0da
commit b077d7089d

View file

@ -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)