Browse Source

Transaction: coinBaseHash no longer relevant

hk-custom-address
Daniel Cousens 10 years ago
parent
commit
e8cb7c16da
  1. 23
      src/transaction.js

23
src/transaction.js

@ -52,23 +52,12 @@ Transaction.fromBuffer = function (buffer, __noStrict) {
var vinLen = readVarInt()
for (var i = 0; i < vinLen; ++i) {
var hash = readSlice(32)
if (Transaction.isCoinbaseHash(hash)) {
tx.ins.push({
hash: hash,
index: readUInt32(),
script: readScript(),
sequence: readUInt32()
})
} else {
tx.ins.push({
hash: hash,
index: readUInt32(),
script: readScript(),
sequence: readUInt32()
})
}
tx.ins.push({
hash: readSlice(32),
index: readUInt32(),
script: readScript(),
sequence: readUInt32()
})
}
var voutLen = readVarInt()

Loading…
Cancel
Save