|
@ -82,9 +82,11 @@ Transaction.fromHex = function (hex) { |
|
|
} |
|
|
} |
|
|
|
|
|
|
|
|
Transaction.isCoinbaseHash = function (buffer) { |
|
|
Transaction.isCoinbaseHash = function (buffer) { |
|
|
return Array.prototype.every.call(buffer, function (x) { |
|
|
typeforce(types.Hash256bit, buffer) |
|
|
return x === 0 |
|
|
for (var i = 0; i < 32; ++i) { |
|
|
}) |
|
|
if (buffer[i] !== 0) return false |
|
|
|
|
|
} |
|
|
|
|
|
return true |
|
|
} |
|
|
} |
|
|
|
|
|
|
|
|
Transaction.prototype.isCoinbase = function () { |
|
|
Transaction.prototype.isCoinbase = function () { |
|
|