aboutsummaryrefslogtreecommitdiffstats
path: root/miner/worker.go
diff options
context:
space:
mode:
authorBas van Kervel <bas@ethdev.com>2016-09-08 16:44:18 +0800
committerBas van Kervel <bas@ethdev.com>2016-09-12 17:33:25 +0800
commite3fe634f99258f249487092d84855fbe75e12805 (patch)
tree8786f267b21d564149c0b24749d6d9880df3d6ef /miner/worker.go
parent6fb8ae2bd6eb2b28f9b44799a8299183d634be80 (diff)
downloadgo-tangerine-e3fe634f99258f249487092d84855fbe75e12805.tar.gz
go-tangerine-e3fe634f99258f249487092d84855fbe75e12805.tar.zst
go-tangerine-e3fe634f99258f249487092d84855fbe75e12805.zip
miner: set tx index logs
Diffstat (limited to 'miner/worker.go')
-rw-r--r--miner/worker.go3
1 files changed, 2 insertions, 1 deletions
diff --git a/miner/worker.go b/miner/worker.go
index d899622b6..1676036d8 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 {