aboutsummaryrefslogtreecommitdiffstats
path: root/websocket/util.go
diff options
context:
space:
mode:
authorobscuren <geffobscura@gmail.com>2015-01-28 17:47:17 +0800
committerobscuren <geffobscura@gmail.com>2015-01-28 17:47:17 +0800
commitf15d23b49686d2325885bee663bc49b7563f689c (patch)
tree7832d7a311a2deee6ab0b05d77f38fa65fcc528a /websocket/util.go
parent4c5968097d2a9fef8af904bfee93cd76cdafd314 (diff)
downloadgo-tangerine-f15d23b49686d2325885bee663bc49b7563f689c.tar.gz
go-tangerine-f15d23b49686d2325885bee663bc49b7563f689c.tar.zst
go-tangerine-f15d23b49686d2325885bee663bc49b7563f689c.zip
updated messages
Diffstat (limited to 'websocket/util.go')
-rw-r--r--websocket/util.go6
1 files changed, 3 insertions, 3 deletions
diff --git a/websocket/util.go b/websocket/util.go
index 943032b06..3c1388de0 100644
--- a/websocket/util.go
+++ b/websocket/util.go
@@ -119,8 +119,8 @@ func (self *WebSocketServer) Serv() {
if mp, ok := msg.Args[0].(map[string]interface{}); ok {
var id int
filter := ui.NewFilterFromMap(mp, self.eth)
- filter.MessageCallback = func(messages state.Messages) {
- c.Event(toMessages(messages), "eth_changed", id)
+ filter.LogsCallback = func(logs state.Logs) {
+ //c.Event(toMessages(messages), "eth_changed", id)
}
id = self.filterManager.InstallFilter(filter)
c.Write(id, msg.Id)
@@ -136,7 +136,7 @@ func (self *WebSocketServer) Serv() {
case "eth_filterLogs":
filter := self.filterManager.GetFilter(int(msg.Arguments().Get(0).Uint()))
if filter != nil {
- c.Write(toMessages(filter.Find()), msg.Id)
+ //c.Write(toMessages(filter.Find()), msg.Id)
}
}