Skip to content

Commit

Permalink
Merge pull request ethereum#2983 from bas-vk/txindex
Browse files Browse the repository at this point in the history
miner: set tx index logs
  • Loading branch information
fjl authored Sep 14, 2016
2 parents dc3e969 + e3fe634 commit 0f6f83a
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion miner/worker.go
Original file line number Diff line number Diff line change
Expand Up @@ -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()
Expand All @@ -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 {
Expand Down

0 comments on commit 0f6f83a

Please sign in to comment.