diff options
author | obscuren <geffobscura@gmail.com> | 2015-01-06 00:12:52 +0800 |
---|---|---|
committer | obscuren <geffobscura@gmail.com> | 2015-01-06 00:12:52 +0800 |
commit | f16810c48e7cb753844d6eea1a68361fc1539389 (patch) | |
tree | ae5c101adcb000c9e8030eb1108b8dae37bb55e5 /cmd/mist | |
parent | 66b05433b6c87a6d31d9508e3e930e5199dbfcde (diff) | |
download | go-tangerine-f16810c48e7cb753844d6eea1a68361fc1539389.tar go-tangerine-f16810c48e7cb753844d6eea1a68361fc1539389.tar.gz go-tangerine-f16810c48e7cb753844d6eea1a68361fc1539389.tar.bz2 go-tangerine-f16810c48e7cb753844d6eea1a68361fc1539389.tar.lz go-tangerine-f16810c48e7cb753844d6eea1a68361fc1539389.tar.xz go-tangerine-f16810c48e7cb753844d6eea1a68361fc1539389.tar.zst go-tangerine-f16810c48e7cb753844d6eea1a68361fc1539389.zip |
added shh back in
Diffstat (limited to 'cmd/mist')
-rw-r--r-- | cmd/mist/assets/qml/main.qml | 1 | ||||
-rw-r--r-- | cmd/mist/gui.go | 2 | ||||
-rw-r--r-- | cmd/mist/ui_lib.go | 4 |
3 files changed, 5 insertions, 2 deletions
diff --git a/cmd/mist/assets/qml/main.qml b/cmd/mist/assets/qml/main.qml index 5df4c8aad..0848d13d5 100644 --- a/cmd/mist/assets/qml/main.qml +++ b/cmd/mist/assets/qml/main.qml @@ -866,6 +866,7 @@ ApplicationWindow { model: ListModel { id: pastPeers } Component.onCompleted: { + pastPeers.insert(0, {text: "poc-8.ethdev.com:30303"}) /* var ips = eth.pastPeers() for(var i = 0; i < ips.length; i++) { diff --git a/cmd/mist/gui.go b/cmd/mist/gui.go index 8e533d977..9efec6527 100644 --- a/cmd/mist/gui.go +++ b/cmd/mist/gui.go @@ -112,7 +112,7 @@ func (gui *Gui) Start(assetPath string) { // Expose the eth library and the ui library to QML context.SetVar("gui", gui) context.SetVar("eth", gui.uiLib) - //context.SetVar("shh", gui.whisper) + context.SetVar("shh", gui.whisper) // Load the main QML interface data, _ := ethutil.Config.Db.Get([]byte("KeyRing")) diff --git a/cmd/mist/ui_lib.go b/cmd/mist/ui_lib.go index 4a92f6479..0aabb87d0 100644 --- a/cmd/mist/ui_lib.go +++ b/cmd/mist/ui_lib.go @@ -195,7 +195,9 @@ func (ui *UiLib) Connect(button qml.Object) { } func (ui *UiLib) ConnectToPeer(addr string) { - ui.eth.SuggestPeer(addr) + if err := ui.eth.SuggestPeer(addr); err != nil { + guilogger.Infoln(err) + } } func (ui *UiLib) AssetPath(p string) string { |