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
1ec6190e
Commit
1ec6190e
authored
Feb 19, 2015
by
Felix Lange
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
cmd/mist: show peer names in peers window
parent
73f94f37
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
4 additions
and
2 deletions
+4
-2
main.qml
cmd/mist/assets/qml/main.qml
+2
-1
gui.go
cmd/mist/gui.go
+2
-1
No files found.
cmd/mist/assets/qml/main.qml
View file @
1ec6190e
...
...
@@ -927,7 +927,8 @@ ApplicationWindow {
model
:
peerModel
TableViewColumn
{
width
:
180
;
role
:
"addr"
;
title
:
"Remote Address"
}
TableViewColumn
{
width
:
280
;
role
:
"nodeID"
;
title
:
"Node ID"
}
TableViewColumn
{
width
:
180
;
role
:
"caps"
;
title
:
"Capabilities"
}
TableViewColumn
{
width
:
100
;
role
:
"name"
;
title
:
"Name"
}
TableViewColumn
{
width
:
40
;
role
:
"caps"
;
title
:
"Capabilities"
}
}
}
}
...
...
cmd/mist/gui.go
View file @
1ec6190e
...
...
@@ -466,7 +466,7 @@ NumGC: %d
))
}
type
qmlpeer
struct
{
Addr
,
NodeID
,
Caps
string
}
type
qmlpeer
struct
{
Addr
,
NodeID
,
Name
,
Caps
string
}
type
peersByID
[]
*
qmlpeer
...
...
@@ -481,6 +481,7 @@ func (gui *Gui) setPeerInfo() {
qpeers
[
i
]
=
&
qmlpeer
{
NodeID
:
p
.
ID
()
.
String
(),
Addr
:
p
.
RemoteAddr
()
.
String
(),
Name
:
p
.
Name
(),
Caps
:
fmt
.
Sprint
(
p
.
Caps
()),
}
}
...
...
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