Browse Source

tests: add isCoinbase tests and flags to fixtures

hk-custom-address
Daniel Cousens 9 years ago
parent
commit
ea2a7449ad
  1. 15
      test/fixtures/transaction.json
  2. 10
      test/transaction.js

15
test/fixtures/transaction.json

File diff suppressed because one or more lines are too long

10
test/transaction.js

@ -162,6 +162,16 @@ describe('Transaction', function () {
})
})
describe('isCoinbase', function () {
fixtures.valid.forEach(function (f) {
it('should return ' + f.coinbase + ' for ' + f.id, function () {
var tx = Transaction.fromHex(f.hex)
assert.strictEqual(tx.isCoinbase(), f.coinbase)
})
})
})
// TODO:
// hashForSignature: [Function],
})

Loading…
Cancel
Save