Adding Transaction.prototype.isCoinbase
This commit is contained in:
parent
8a59fc1b3b
commit
f958dd1e86
1 changed files with 4 additions and 0 deletions
|
@ -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)
|
var EMPTY_SCRIPT = new Buffer(0)
|
||||||
|
|
||||||
Transaction.prototype.addInput = function (hash, index, sequence, scriptSig) {
|
Transaction.prototype.addInput = function (hash, index, sequence, scriptSig) {
|
||||||
|
|
Loading…
Add table
Reference in a new issue