Skip to content

Commit

Permalink
miner: set tx index logs
Browse files Browse the repository at this point in the history
  • Loading branch information
Bas van Kervel committed Sep 12, 2016
1 parent 6fb8ae2 commit e3fe634
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 e3fe634

Please sign in to comment.