diff options
author | obscuren <geffobscura@gmail.com> | 2015-04-08 23:14:58 +0800 |
---|---|---|
committer | obscuren <geffobscura@gmail.com> | 2015-04-08 23:15:45 +0800 |
commit | 1c872ddf4b1db51847a5d9d020e13d432e847f52 (patch) | |
tree | 72ec461427269a25165b58043f328fd374e143ee /miner | |
parent | 6284604b52e075e454e61f2933cadaaf9ded364b (diff) | |
download | dexon-1c872ddf4b1db51847a5d9d020e13d432e847f52.tar dexon-1c872ddf4b1db51847a5d9d020e13d432e847f52.tar.gz dexon-1c872ddf4b1db51847a5d9d020e13d432e847f52.tar.bz2 dexon-1c872ddf4b1db51847a5d9d020e13d432e847f52.tar.lz dexon-1c872ddf4b1db51847a5d9d020e13d432e847f52.tar.xz dexon-1c872ddf4b1db51847a5d9d020e13d432e847f52.tar.zst dexon-1c872ddf4b1db51847a5d9d020e13d432e847f52.zip |
Changed how logs are being recorded
Logs are now recorded per transactions instead of tossing them out after
each transaction. This should also fix an issue with
`eth_getFilterLogs` (#629) Also now implemented are the `transactionHash,
blockHash, transactionIndex, logIndex` on logs. Closes #654.
Diffstat (limited to 'miner')
-rw-r--r-- | miner/worker.go | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/miner/worker.go b/miner/worker.go index 7f2728f9c..25ea95347 100644 --- a/miner/worker.go +++ b/miner/worker.go @@ -266,6 +266,8 @@ func (self *worker) commitNewWork() { ) gasLimit: for i, tx := range transactions { + self.current.state.StartRecord(tx.Hash(), common.Hash{}, 0) + err := self.commitTransaction(tx) switch { case core.IsNonceErr(err) || core.IsInvalidTxErr(err): |