Transaction: coinBaseHash no longer relevant
This commit is contained in:
parent
4b825bf2a8
commit
e8cb7c16da
1 changed files with 6 additions and 17 deletions
|
@ -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…
Reference in a new issue