diff options
author | Felix Lange <fjl@twurst.com> | 2016-09-15 03:05:17 +0800 |
---|---|---|
committer | GitHub <noreply@github.com> | 2016-09-15 03:05:17 +0800 |
commit | 0f6f83a709c465b5e140743fc7cfe6d83faf9f20 (patch) | |
tree | 44d36e8efa0acdaa6ee47ef53cc0fdf74d4a5be9 | |
parent | dc3e969e148fbc48b9839e1e274fde2444b71790 (diff) | |
parent | e3fe634f99258f249487092d84855fbe75e12805 (diff) | |
download | dexon-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.go | 3 |
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 { |