From 1c872ddf4b1db51847a5d9d020e13d432e847f52 Mon Sep 17 00:00:00 2001 From: obscuren Date: Wed, 8 Apr 2015 17:14:58 +0200 Subject: 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. --- miner/worker.go | 2 ++ 1 file changed, 2 insertions(+) (limited to 'miner/worker.go') 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): -- cgit