aboutsummaryrefslogtreecommitdiffstats
path: root/xeth
diff options
context:
space:
mode:
authorobscuren <geffobscura@gmail.com>2015-04-08 23:14:58 +0800
committerobscuren <geffobscura@gmail.com>2015-04-08 23:15:45 +0800
commit1c872ddf4b1db51847a5d9d020e13d432e847f52 (patch)
tree72ec461427269a25165b58043f328fd374e143ee /xeth
parent6284604b52e075e454e61f2933cadaaf9ded364b (diff)
downloadgo-tangerine-1c872ddf4b1db51847a5d9d020e13d432e847f52.tar
go-tangerine-1c872ddf4b1db51847a5d9d020e13d432e847f52.tar.gz
go-tangerine-1c872ddf4b1db51847a5d9d020e13d432e847f52.tar.bz2
go-tangerine-1c872ddf4b1db51847a5d9d020e13d432e847f52.tar.lz
go-tangerine-1c872ddf4b1db51847a5d9d020e13d432e847f52.tar.xz
go-tangerine-1c872ddf4b1db51847a5d9d020e13d432e847f52.tar.zst
go-tangerine-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 'xeth')
-rw-r--r--xeth/xeth.go6
1 files changed, 3 insertions, 3 deletions
diff --git a/xeth/xeth.go b/xeth/xeth.go
index b8d9ecb08..94014763a 100644
--- a/xeth/xeth.go
+++ b/xeth/xeth.go
@@ -393,7 +393,7 @@ func (self *XEth) NewFilterString(word string) int {
self.logMut.Lock()
defer self.logMut.Unlock()
- self.logs[id].add(&state.StateLog{})
+ self.logs[id].add(&state.Log{})
}
case "latest":
filter.BlockCallback = func(block *types.Block, logs state.Logs) {
@@ -403,7 +403,7 @@ func (self *XEth) NewFilterString(word string) int {
for _, log := range logs {
self.logs[id].add(log)
}
- self.logs[id].add(&state.StateLog{})
+ self.logs[id].add(&state.Log{})
}
}
@@ -729,7 +729,7 @@ type logFilter struct {
id int
}
-func (l *logFilter) add(logs ...state.Log) {
+func (l *logFilter) add(logs ...*state.Log) {
l.logs = append(l.logs, logs...)
}