From e3fe634f99258f249487092d84855fbe75e12805 Mon Sep 17 00:00:00 2001 From: Bas van Kervel Date: Thu, 8 Sep 2016 10:44:18 +0200 Subject: [PATCH] miner: set tx index logs --- miner/worker.go | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/miner/worker.go b/miner/worker.go index d899622b69..1676036d87 100644 --- a/miner/worker.go +++ b/miner/worker.go @@ -561,6 +561,7 @@ func (env *Work) commitTransactions(mux *event.TypeMux, txs *types.TransactionsB gp := new(core.GasPool).AddGas(env.header.GasLimit) var coalescedLogs vm.Logs + for { // Retrieve the next transaction and abort if all done tx := txs.Peek() @@ -582,7 +583,7 @@ func (env *Work) commitTransactions(mux *event.TypeMux, txs *types.TransactionsB continue } // Start executing the transaction - env.state.StartRecord(tx.Hash(), common.Hash{}, 0) + env.state.StartRecord(tx.Hash(), common.Hash{}, env.tcount) err, logs := env.commitTransaction(tx, bc, gp) switch {