diff options
author | obscuren <geffobscura@gmail.com> | 2015-02-14 00:00:15 +0800 |
---|---|---|
committer | obscuren <geffobscura@gmail.com> | 2015-02-14 00:00:15 +0800 |
commit | 8305d409d2ca83583d9fa7e837ec0a46ce6ba78e (patch) | |
tree | 956c768957f56044113772a88a9cbe7de0ef9cf1 /cmd/mist/ext_app.go | |
parent | b64ad7a2a6544564b68f362f18c70476310396d6 (diff) | |
parent | 5c251b69282b3992512d0c17ed0063f294a0e663 (diff) | |
download | go-tangerine-8305d409d2ca83583d9fa7e837ec0a46ce6ba78e.tar go-tangerine-8305d409d2ca83583d9fa7e837ec0a46ce6ba78e.tar.gz go-tangerine-8305d409d2ca83583d9fa7e837ec0a46ce6ba78e.tar.bz2 go-tangerine-8305d409d2ca83583d9fa7e837ec0a46ce6ba78e.tar.lz go-tangerine-8305d409d2ca83583d9fa7e837ec0a46ce6ba78e.tar.xz go-tangerine-8305d409d2ca83583d9fa7e837ec0a46ce6ba78e.tar.zst go-tangerine-8305d409d2ca83583d9fa7e837ec0a46ce6ba78e.zip |
Merge branch 'develop' into miner
Diffstat (limited to 'cmd/mist/ext_app.go')
-rw-r--r-- | cmd/mist/ext_app.go | 26 |
1 files changed, 0 insertions, 26 deletions
diff --git a/cmd/mist/ext_app.go b/cmd/mist/ext_app.go index 20ec52e60..4831884e5 100644 --- a/cmd/mist/ext_app.go +++ b/cmd/mist/ext_app.go @@ -24,7 +24,6 @@ import ( "github.com/ethereum/go-ethereum/core" "github.com/ethereum/go-ethereum/core/types" "github.com/ethereum/go-ethereum/event" - "github.com/ethereum/go-ethereum/state" "github.com/ethereum/go-ethereum/ui/qt" "github.com/ethereum/go-ethereum/xeth" "github.com/obscuren/qml" @@ -39,7 +38,6 @@ type AppContainer interface { NewBlock(*types.Block) NewWatcher(chan bool) - Messages(state.Messages, string) Post(string, int) } @@ -79,10 +77,6 @@ func (app *ExtApplication) run() { return } - // Subscribe to events - mux := app.lib.eth.EventMux() - app.events = mux.Subscribe(core.NewBlockEvent{}, state.Messages(nil)) - // Call the main loop go app.mainLoop() @@ -126,23 +120,3 @@ func (app *ExtApplication) mainLoop() { func (self *ExtApplication) Watch(filterOptions map[string]interface{}, identifier string) { self.filters[identifier] = qt.NewFilterFromMap(filterOptions, self.eth) } - -func (self *ExtApplication) GetMessages(object map[string]interface{}) string { - /* TODO remove me - filter := qt.NewFilterFromMap(object, self.eth) - - messages := filter.Find() - var msgs []javascript.JSMessage - for _, m := range messages { - msgs = append(msgs, javascript.NewJSMessage(m)) - } - - b, err := json.Marshal(msgs) - if err != nil { - return "{\"error\":" + err.Error() + "}" - } - - return string(b) - */ - return "" -} |