diff options
author | Bas van Kervel <bas@ethdev.com> | 2016-09-08 16:44:18 +0800 |
---|---|---|
committer | Bas van Kervel <bas@ethdev.com> | 2016-09-12 17:33:25 +0800 |
commit | e3fe634f99258f249487092d84855fbe75e12805 (patch) | |
tree | 8786f267b21d564149c0b24749d6d9880df3d6ef /miner | |
parent | 6fb8ae2bd6eb2b28f9b44799a8299183d634be80 (diff) | |
download | dexon-e3fe634f99258f249487092d84855fbe75e12805.tar dexon-e3fe634f99258f249487092d84855fbe75e12805.tar.gz dexon-e3fe634f99258f249487092d84855fbe75e12805.tar.bz2 dexon-e3fe634f99258f249487092d84855fbe75e12805.tar.lz dexon-e3fe634f99258f249487092d84855fbe75e12805.tar.xz dexon-e3fe634f99258f249487092d84855fbe75e12805.tar.zst dexon-e3fe634f99258f249487092d84855fbe75e12805.zip |
miner: set tx index logs
Diffstat (limited to 'miner')
-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 { |