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
01863ebf
Commit
01863ebf
authored
Sep 17, 2014
by
obscuren
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Rename and changed peer window
parent
e4cc365e
Changes
7
Hide whitespace changes
Inline
Side-by-side
Showing
7 changed files
with
55 additions
and
16 deletions
+55
-16
wallet.qml
Mist/assets/qml/wallet.qml
+37
-6
flags.go
Mist/flags.go
+3
-3
gui.go
Mist/gui.go
+6
-2
main.go
Mist/main.go
+2
-2
ui_lib.go
Mist/ui_lib.go
+4
-0
javascript_runtime.go
javascript/javascript_runtime.go
+1
-1
cmd.go
utils/cmd.go
+2
-2
No files found.
Mist/assets/qml/wallet.qml
View file @
01863ebf
...
...
@@ -19,7 +19,7 @@ ApplicationWindow {
height
:
600
minimumHeight
:
300
title
:
"
Ether Browser
"
title
:
"
Mist
"
// This signal is used by the filter API. The filter API connects using this signal handler from
// the different QML files and plugins.
...
...
@@ -853,16 +853,20 @@ ApplicationWindow {
Window
{
id
:
addPeerWin
visible
:
false
minimumWidth
:
23
0
maximumWidth
:
23
0
minimumWidth
:
30
0
maximumWidth
:
30
0
maximumHeight
:
50
minimumHeight
:
50
title
:
"Add peer"
/*
TextField {
id: addrField
anchors.verticalCenter: parent.verticalCenter
anchors.left: parent.left
anchors.right: addPeerButton.left
anchors.leftMargin: 10
anchors.rightMargin: 10
placeholderText: "address:port"
text: "54.76.56.74:30303"
onAccepted: {
...
...
@@ -870,13 +874,40 @@ ApplicationWindow {
addPeerWin.visible = false
}
}
*/
ComboBox
{
id
:
addrField
anchors.verticalCenter
:
parent
.
verticalCenter
anchors.left
:
parent
.
left
anchors.right
:
addPeerButton
.
left
anchors.leftMargin
:
10
anchors.rightMargin
:
10
onAccepted
:
{
eth
.
connectToPeer
(
addrField
.
currentText
)
addPeerWin
.
visible
=
false
}
editable
:
true
model
:
ListModel
{
id
:
pastPeers
}
Component.onCompleted
:
{
var
ips
=
eth
.
pastPeers
()
for
(
var
i
=
0
;
i
<
ips
.
length
;
i
++
)
{
pastPeers
.
append
({
text
:
ips
.
get
(
i
)})
}
pastPeers
.
insert
(
0
,
{
text
:
"54.76.56.74:30303"
})
}
}
Button
{
anchors.left
:
addrField
.
right
id
:
addPeerButton
anchors.right
:
parent
.
right
anchors.verticalCenter
:
parent
.
verticalCenter
anchors.
leftMargin
:
5
anchors.
rightMargin
:
10
text
:
"Add"
onClicked
:
{
eth
.
connectToPeer
(
addrField
.
t
ext
)
eth
.
connectToPeer
(
addrField
.
currentT
ext
)
addPeerWin
.
visible
=
false
}
}
...
...
Mist/flags.go
View file @
01863ebf
...
...
@@ -44,7 +44,7 @@ func defaultAssetPath() string {
// assume a debug build and use the source directory as
// asset directory.
pwd
,
_
:=
os
.
Getwd
()
if
pwd
==
path
.
Join
(
os
.
Getenv
(
"GOPATH"
),
"src"
,
"github.com"
,
"ethereum"
,
"go-ethereum"
,
"
ethereal
"
)
{
if
pwd
==
path
.
Join
(
os
.
Getenv
(
"GOPATH"
),
"src"
,
"github.com"
,
"ethereum"
,
"go-ethereum"
,
"
Mist
"
)
{
assetPath
=
path
.
Join
(
pwd
,
"assets"
)
}
else
{
switch
runtime
.
GOOS
{
...
...
@@ -53,7 +53,7 @@ func defaultAssetPath() string {
exedir
,
_
:=
osext
.
ExecutableFolder
()
assetPath
=
filepath
.
Join
(
exedir
,
"../Resources"
)
case
"linux"
:
assetPath
=
"/usr/share/
ethereal
"
assetPath
=
"/usr/share/
mist
"
case
"windows"
:
assetPath
=
"./assets"
default
:
...
...
@@ -64,7 +64,7 @@ func defaultAssetPath() string {
}
func
defaultDataDir
()
string
{
usr
,
_
:=
user
.
Current
()
return
path
.
Join
(
usr
.
HomeDir
,
".
ethereal
"
)
return
path
.
Join
(
usr
.
HomeDir
,
".
mist
"
)
}
var
defaultConfigFile
=
path
.
Join
(
defaultDataDir
(),
"conf.ini"
)
...
...
Mist/gui.go
View file @
01863ebf
...
...
@@ -491,7 +491,9 @@ func (gui *Gui) setStatsPane() {
runtime
.
ReadMemStats
(
&
memStats
)
statsPane
:=
gui
.
getObjectByName
(
"statsPane"
)
statsPane
.
Set
(
"text"
,
fmt
.
Sprintf
(
`###### Ethereal 0.6.4 (%s) #######
statsPane
.
Set
(
"text"
,
fmt
.
Sprintf
(
`###### Mist 0.6.4 (%s) #######
eth %d (p2p = %d)
CPU: # %d
Goroutines: # %d
...
...
@@ -502,7 +504,9 @@ Heap Alloc: %d
CGNext: %x
NumGC: %d
`
,
runtime
.
Version
(),
runtime
.
NumCPU
,
runtime
.
NumGoroutine
(),
runtime
.
NumCgoCall
(),
`
,
runtime
.
Version
(),
eth
.
ProtocolVersion
,
eth
.
P2PVersion
,
runtime
.
NumCPU
,
runtime
.
NumGoroutine
(),
runtime
.
NumCgoCall
(),
memStats
.
Alloc
,
memStats
.
HeapAlloc
,
memStats
.
NextGC
,
memStats
.
NumGC
,
))
...
...
Mist/main.go
View file @
01863ebf
...
...
@@ -11,8 +11,8 @@ import (
)
const
(
ClientIdentifier
=
"
Ethereal
"
Version
=
"0.6.
6
"
ClientIdentifier
=
"
Mist
"
Version
=
"0.6.
7
"
)
var
ethereum
*
eth
.
Ethereum
...
...
Mist/ui_lib.go
View file @
01863ebf
...
...
@@ -72,6 +72,10 @@ func (self *UiLib) LookupDomain(domain string) string {
}
}
func
(
self
*
UiLib
)
PastPeers
()
*
ethutil
.
List
{
return
ethutil
.
NewList
(
eth
.
PastPeers
())
}
func
(
self
*
UiLib
)
ImportTx
(
rlpTx
string
)
{
tx
:=
ethchain
.
NewTransactionFromBytes
(
ethutil
.
Hex2Bytes
(
rlpTx
))
self
.
eth
.
TxPool
()
.
QueueTransaction
(
tx
)
...
...
javascript/javascript_runtime.go
View file @
01863ebf
...
...
@@ -42,7 +42,7 @@ func (jsre *JSRE) LoadExtFile(path string) {
}
func
(
jsre
*
JSRE
)
LoadIntFile
(
file
string
)
{
assetPath
:=
path
.
Join
(
os
.
Getenv
(
"GOPATH"
),
"src"
,
"github.com"
,
"ethereum"
,
"go-ethereum"
,
"
ethereal
"
,
"assets"
,
"ext"
)
assetPath
:=
path
.
Join
(
os
.
Getenv
(
"GOPATH"
),
"src"
,
"github.com"
,
"ethereum"
,
"go-ethereum"
,
"
Mist
"
,
"assets"
,
"ext"
)
jsre
.
LoadExtFile
(
path
.
Join
(
assetPath
,
file
))
}
...
...
utils/cmd.go
View file @
01863ebf
...
...
@@ -189,7 +189,7 @@ func DefaultAssetPath() string {
// assume a debug build and use the source directory as
// asset directory.
pwd
,
_
:=
os
.
Getwd
()
if
pwd
==
path
.
Join
(
os
.
Getenv
(
"GOPATH"
),
"src"
,
"github.com"
,
"ethereum"
,
"go-ethereum"
,
"
ethereal
"
)
{
if
pwd
==
path
.
Join
(
os
.
Getenv
(
"GOPATH"
),
"src"
,
"github.com"
,
"ethereum"
,
"go-ethereum"
,
"
Mist
"
)
{
assetPath
=
path
.
Join
(
pwd
,
"assets"
)
}
else
{
switch
runtime
.
GOOS
{
...
...
@@ -198,7 +198,7 @@ func DefaultAssetPath() string {
exedir
,
_
:=
osext
.
ExecutableFolder
()
assetPath
=
filepath
.
Join
(
exedir
,
"../Resources"
)
case
"linux"
:
assetPath
=
"/usr/share/
ethereal
"
assetPath
=
"/usr/share/
mist
"
case
"windows"
:
assetPath
=
"./assets"
default
:
...
...
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