Browse Source

Transaction: coinBaseHash no longer relevant

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

13
src/transaction.js

@ -52,24 +52,13 @@ 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,
hash: readSlice(32),
index: readUInt32(),
script: readScript(),
sequence: readUInt32()
})
}
}
var voutLen = readVarInt()
for (i = 0; i < voutLen; ++i) {

Loading…
Cancel
Save