Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
G
Geth-Modification
Project
Project
Details
Activity
Releases
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
张蕾
Geth-Modification
Commits
f16810c4
Commit
f16810c4
authored
Jan 05, 2015
by
obscuren
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
added shh back in
parent
66b05433
Changes
4
Hide whitespace changes
Inline
Side-by-side
Showing
4 changed files
with
10 additions
and
3 deletions
+10
-3
main.qml
cmd/mist/assets/qml/main.qml
+1
-0
gui.go
cmd/mist/gui.go
+1
-1
ui_lib.go
cmd/mist/ui_lib.go
+3
-1
cmd.go
cmd/utils/cmd.go
+5
-1
No files found.
cmd/mist/assets/qml/main.qml
View file @
f16810c4
...
...
@@ -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++) {
...
...
cmd/mist/gui.go
View file @
f16810c4
...
...
@@ -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"
))
...
...
cmd/mist/ui_lib.go
View file @
f16810c4
...
...
@@ -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
{
...
...
cmd/utils/cmd.go
View file @
f16810c4
...
...
@@ -100,7 +100,11 @@ func exit(err error) {
func
StartEthereum
(
ethereum
*
eth
.
Ethereum
,
UseSeed
bool
)
{
clilogger
.
Infof
(
"Starting %s"
,
ethereum
.
ClientIdentity
())
ethereum
.
Start
(
UseSeed
)
err
:=
ethereum
.
Start
(
UseSeed
)
if
err
!=
nil
{
exit
(
err
)
}
RegisterInterrupt
(
func
(
sig
os
.
Signal
)
{
ethereum
.
Stop
()
logger
.
Flush
()
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment