|
@ -44,11 +44,10 @@ Block.fromBuffer = function (buffer) { |
|
|
return vi.number |
|
|
return vi.number |
|
|
} |
|
|
} |
|
|
|
|
|
|
|
|
// FIXME: poor performance
|
|
|
|
|
|
function readTransaction () { |
|
|
function readTransaction () { |
|
|
var tx = Transaction.fromBuffer(buffer.slice(offset), true) |
|
|
var tx = Transaction.fromBuffer(buffer.slice(offset), true) |
|
|
|
|
|
|
|
|
offset += tx.toBuffer().length |
|
|
offset += tx.byteLength() |
|
|
return tx |
|
|
return tx |
|
|
} |
|
|
} |
|
|
|
|
|
|
|
|