Browse Source

Adding Transaction.prototype.isCoinbase

hk-custom-address
Karel Bilek 9 years ago
committed by Daniel Cousens
parent
commit
f958dd1e86
  1. 4
      src/transaction.js

4
src/transaction.js

@ -87,6 +87,10 @@ Transaction.isCoinbaseHash = function (buffer) {
})
}
Transaction.prototype.isCoinbase = function () {
return this.ins.length === 1 && Transaction.isCoinbaseHash(this.ins[0].hash)
}
var EMPTY_SCRIPT = new Buffer(0)
Transaction.prototype.addInput = function (hash, index, sequence, scriptSig) {

Loading…
Cancel
Save