aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorFelix Lange <fjl@twurst.com>2016-09-15 03:05:17 +0800
committerGitHub <noreply@github.com>2016-09-15 03:05:17 +0800
commit0f6f83a709c465b5e140743fc7cfe6d83faf9f20 (patch)
tree44d36e8efa0acdaa6ee47ef53cc0fdf74d4a5be9
parentdc3e969e148fbc48b9839e1e274fde2444b71790 (diff)
parente3fe634f99258f249487092d84855fbe75e12805 (diff)
downloaddexon-0f6f83a709c465b5e140743fc7cfe6d83faf9f20.tar.gz
dexon-0f6f83a709c465b5e140743fc7cfe6d83faf9f20.tar.zst
dexon-0f6f83a709c465b5e140743fc7cfe6d83faf9f20.zip
Merge pull request #2983 from bas-vk/txindex
miner: set tx index logs
-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 {