From e8cb7c16da683440b52635247a0b2a293553a888 Mon Sep 17 00:00:00 2001 From: Daniel Cousens Date: Sat, 5 Sep 2015 14:28:28 +1000 Subject: [PATCH] Transaction: coinBaseHash no longer relevant --- src/transaction.js | 23 ++++++----------------- 1 file changed, 6 insertions(+), 17 deletions(-) diff --git a/src/transaction.js b/src/transaction.js index d717842..3ddf84b 100644 --- a/src/transaction.js +++ b/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()