Browse Source

tests/integration: change hodlDate to T+2 hours

hk-custom-address
Daniel Cousens 9 years ago
parent
commit
b077d7089d
  1. 4
      test/integration/advanced.js

4
test/integration/advanced.js

@ -74,8 +74,8 @@ describe('bitcoinjs-lib (advanced)', function () {
var unspent = unspents.pop() var unspent = unspents.pop()
var tx = new bitcoin.TransactionBuilder(network) var tx = new bitcoin.TransactionBuilder(network)
// now + 1 month // now + 2 hours
var hodlDate = Math.floor((Date.now() + new Date(0).setMonth(1)) / 1000) var hodlDate = Math.floor((Date.now() + new Date(0).setSeconds(7200)) / 1000)
var hodlLockTimeBuffer = new Buffer(4) var hodlLockTimeBuffer = new Buffer(4)
hodlLockTimeBuffer.writeInt32LE(hodlDate | 0, 0) hodlLockTimeBuffer.writeInt32LE(hodlDate | 0, 0)

Loading…
Cancel
Save