miner: set tx index logs

pull/2983/head
Bas van Kervel 8 years ago
parent 6fb8ae2bd6
commit e3fe634f99
  1. 3
      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 {

Loading…
Cancel
Save