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
bd95fd77
Commit
bd95fd77
authored
Sep 26, 2014
by
obscuren
Browse files
Options
Browse Files
Download
Plain Diff
Merge branch 'release/0.6.7'
parents
b8b14533
2b8eae98
Changes
11
Show whitespace changes
Inline
Side-by-side
Showing
11 changed files
with
65 additions
and
58 deletions
+65
-58
README.md
README.md
+1
-1
main.go
ethereum/main.go
+1
-1
debugger.qml
mist/assets/debugger/debugger.qml
+1
-1
html_messaging.js
mist/assets/ext/html_messaging.js
+14
-13
main.qml
mist/assets/qml/main.qml
+3
-2
info.qml
mist/assets/qml/views/info.qml
+6
-35
jeffcoin.qml
mist/assets/qml/views/jeffcoin/jeffcoin.qml
+7
-1
wallet.qml
mist/assets/qml/views/wallet.qml
+3
-1
gui.go
mist/gui.go
+2
-2
main.go
mist/main.go
+1
-1
ui_lib.go
mist/ui_lib.go
+26
-0
No files found.
README.md
View file @
bd95fd77
...
...
@@ -7,7 +7,7 @@ Status](http://cpt-obvious.ethercasts.com:8010/buildstatusimage?builder=go-ether
Ethereum Go Client © 2014 Jeffrey Wilcke.
Current state: Proof of Concept 0.6.
6
.
Current state: Proof of Concept 0.6.
7
.
For the development package please see the
[
eth-go package
](
https://github.com/ethereum/eth-go
)
.
...
...
ethereum/main.go
View file @
bd95fd77
...
...
@@ -13,7 +13,7 @@ import (
const
(
ClientIdentifier
=
"Ethereum(G)"
Version
=
"0.6.
6
"
Version
=
"0.6.
7
"
)
var
logger
=
ethlog
.
NewLogger
(
"CLI"
)
...
...
mist/assets/debugger/debugger.qml
View file @
bd95fd77
...
...
@@ -357,7 +357,7 @@ ApplicationWindow {
anchors.right
:
parent
.
right
model
:
ListModel
{
ListElement
{
text
:
"Snippets"
;
value
:
""
}
ListElement
{
text
:
"Call Contract"
;
value
:
"var[2] in
;
\n
var ret;
\n\n
in[0] =
\"
arg1
\"\n
in[1] = 0xdeadbeef
\n\n
var success = call(0x0c542ddea93dae0c2fcb2cf175f03ad80d6be9a0, 0, 7000, in, ret)
\n\n
return ret"
}
ListElement
{
text
:
"Call Contract"
;
value
:
"var[2] in
= {
\"
arg1
\"
, 0xdeadbeef };
\n
var ret;
\n\n
var success = call(0x0c542ddea93dae0c2fcb2cf175f03ad80d6be9a0, 0, 7000, in, ret)
\n\n
return ret"
}
}
onCurrentIndexChanged
:
{
if
(
currentIndex
!=
0
)
{
...
...
mist/assets/ext/html_messaging.js
View file @
bd95fd77
...
...
@@ -92,16 +92,16 @@
promises
.
push
(
params
.
from
.
then
(
function
(
_from
)
{
params
.
from
=
_from
;
}));
}
if
(
isPromise
(
params
.
data
))
{
promises
.
push
(
params
.
data
.
then
(
function
(
_code
)
{
params
.
data
=
_code
;
}));
}
else
{
if
(
typeof
params
.
data
===
"object"
)
{
data
=
""
;
for
(
var
i
=
0
;
i
<
params
.
data
.
length
;
i
++
)
{
data
+=
params
.
data
[
i
]
if
(
typeof
params
.
data
!==
"object"
||
isPromise
(
params
.
data
))
{
params
.
data
=
[
params
.
data
]
}
}
else
{
data
=
params
.
data
;
var
data
=
params
.
data
;
for
(
var
i
=
0
;
i
<
params
.
data
.
length
;
i
++
)
{
if
(
isPromise
(
params
.
data
[
i
]))
{
var
promise
=
params
.
data
[
i
];
var
_i
=
i
;
promises
.
push
(
promise
.
then
(
function
(
_arg
)
{
params
.
data
[
_i
]
=
_arg
;
}));
}
}
...
...
@@ -117,6 +117,7 @@
// Load promises then call the last "transact".
return
Q
.
all
(
promises
).
then
(
function
()
{
return
new
Promise
(
function
(
resolve
,
reject
)
{
params
.
data
=
params
.
data
.
join
(
""
);
postData
({
call
:
"transact"
,
args
:
params
},
function
(
data
)
{
if
(
data
[
1
])
reject
(
data
[
0
]);
...
...
mist/assets/qml/
wallet
.qml
→
mist/assets/qml/
main
.qml
View file @
bd95fd77
...
...
@@ -739,7 +739,7 @@ ApplicationWindow {
function
addPeer
(
peer
)
{
// We could just append the whole peer object but it cries if you try to alter them
peerModel
.
append
({
ip
:
peer
.
ip
,
port
:
peer
.
port
,
lastResponse
:
timeAgo
(
peer
.
lastSend
),
latency
:
peer
.
latency
,
version
:
peer
.
version
})
peerModel
.
append
({
ip
:
peer
.
ip
,
port
:
peer
.
port
,
lastResponse
:
timeAgo
(
peer
.
lastSend
),
latency
:
peer
.
latency
,
version
:
peer
.
version
,
caps
:
peer
.
caps
})
}
function
resetPeers
(){
...
...
@@ -786,6 +786,7 @@ ApplicationWindow {
TableViewColumn
{
width
:
140
;
role
:
"lastResponse"
;
title
:
"Last event"
}
TableViewColumn
{
width
:
100
;
role
:
"latency"
;
title
:
"Latency"
}
TableViewColumn
{
width
:
260
;
role
:
"version"
;
title
:
"Version"
}
TableViewColumn
{
width
:
80
;
role
:
"caps"
;
title
:
"Capabilities"
}
}
}
}
...
...
mist/assets/qml/views/info.qml
View file @
bd95fd77
...
...
@@ -121,40 +121,7 @@ Rectangle {
}
}
Slider
{
id
:
logLevelSlider
value
:
gui
.
getLogLevelInt
()
anchors
{
right
:
parent
.
right
top
:
parent
.
top
bottom
:
parent
.
bottom
rightMargin
:
5
leftMargin
:
5
topMargin
:
5
bottomMargin
:
5
}
orientation
:
Qt
.
Vertical
maximumValue
:
5
stepSize
:
1
onValueChanged
:
{
gui
.
setLogLevel
(
value
)
}
}
}
property
var
logModel
:
ListModel
{
id
:
logModel
}
/*
RowLayout {
id: logLayout
width: parent.width
height: 200
anchors.bottom: parent.bottom
TableView {
id: logView
headerVisible: false
...
...
@@ -169,6 +136,7 @@ Rectangle {
model: logModel
}
*/
Slider
{
id
:
logLevelSlider
...
...
@@ -193,7 +161,10 @@ Rectangle {
}
}
}
*/
property
var
logModel
:
ListModel
{
id
:
logModel
}
function
addDebugMessage
(
message
){
debuggerLog
.
append
({
value
:
message
})
...
...
mist/assets/qml/views/jeffcoin/jeffcoin.qml
View file @
bd95fd77
...
...
@@ -22,6 +22,8 @@ Rectangle {
var
me
=
eth
.
key
().
address
;
if
((
to
==
me
||
from
==
me
)
&&
message
.
input
.
length
==
128
)
{
var
to
=
eth
.
lookupName
(
to
)
var
from
=
eth
.
lookupName
(
from
)
txModel
.
insert
(
0
,
{
confirmations
:
blockNumber
-
message
.
number
,
from
:
from
,
to
:
to
,
value
:
value
})
}
}
...
...
@@ -151,7 +153,11 @@ Rectangle {
Button
{
text
:
"Send"
onClicked
:
{
eth
.
transact
({
from
:
eth
.
key
().
privateKey
,
to
:
address
,
gas
:
"9000"
,
gasPrice
:
"10000000000000"
,
data
:
[
"0x"
+
txTo
.
text
,
txValue
.
text
]})
var
lookup
=
eth
.
lookupAddress
(
address
)
if
(
lookup
.
length
==
0
)
lookup
=
address
eth
.
transact
({
from
:
eth
.
key
().
privateKey
,
to
:
lookup
,
gas
:
"9000"
,
gasPrice
:
"10000000000000"
,
data
:
[
"0x"
+
txTo
.
text
,
txValue
.
text
]})
}
}
}
...
...
mist/assets/qml/views/wallet.qml
View file @
bd95fd77
...
...
@@ -160,7 +160,9 @@ Rectangle {
function
addTxs
(
messages
)
{
for
(
var
i
=
0
;
i
<
messages
.
length
;
i
++
)
{
var
message
=
messages
.
get
(
i
);
txModel
.
insert
(
0
,
{
num
:
txModel
.
count
,
from
:
message
.
from
,
to
:
message
.
to
,
value
:
eth
.
numberToHuman
(
message
.
value
)})
var
to
=
eth
.
lookupName
(
message
.
to
);
var
from
=
eth
.
lookupName
(
message
.
from
);
txModel
.
insert
(
0
,
{
num
:
txModel
.
count
,
from
:
from
,
to
:
to
,
value
:
eth
.
numberToHuman
(
message
.
value
)})
}
}
}
...
...
mist/gui.go
View file @
bd95fd77
...
...
@@ -172,7 +172,7 @@ func (gui *Gui) Stop() {
}
func
(
gui
*
Gui
)
showWallet
(
context
*
qml
.
Context
)
(
*
qml
.
Window
,
error
)
{
component
,
err
:=
gui
.
engine
.
LoadFile
(
gui
.
uiLib
.
AssetPath
(
"qml/
wallet
.qml"
))
component
,
err
:=
gui
.
engine
.
LoadFile
(
gui
.
uiLib
.
AssetPath
(
"qml/
main
.qml"
))
if
err
!=
nil
{
return
nil
,
err
}
...
...
@@ -500,7 +500,7 @@ func (gui *Gui) setStatsPane() {
runtime
.
ReadMemStats
(
&
memStats
)
statsPane
:=
gui
.
getObjectByName
(
"statsPane"
)
statsPane
.
Set
(
"text"
,
fmt
.
Sprintf
(
`###### Mist 0.6.
5
(%s) #######
statsPane
.
Set
(
"text"
,
fmt
.
Sprintf
(
`###### Mist 0.6.
7
(%s) #######
eth %d (p2p = %d)
...
...
mist/main.go
View file @
bd95fd77
...
...
@@ -12,7 +12,7 @@ import (
const
(
ClientIdentifier
=
"Mist"
Version
=
"0.6.
6
"
Version
=
"0.6.
7
"
)
var
ethereum
*
eth
.
Ethereum
...
...
mist/ui_lib.go
View file @
bd95fd77
...
...
@@ -71,6 +71,32 @@ func (self *UiLib) LookupDomain(domain string) string {
}
}
func
(
self
*
UiLib
)
LookupName
(
addr
string
)
string
{
var
(
nameReg
=
self
.
World
()
.
Config
()
.
Get
(
"NameReg"
)
lookup
=
nameReg
.
Storage
(
ethutil
.
Hex2Bytes
(
addr
))
)
if
lookup
.
Len
()
!=
0
{
return
strings
.
Trim
(
lookup
.
Str
(),
"
\x00
"
)
}
return
addr
}
func
(
self
*
UiLib
)
LookupAddress
(
name
string
)
string
{
var
(
nameReg
=
self
.
World
()
.
Config
()
.
Get
(
"NameReg"
)
lookup
=
nameReg
.
Storage
(
ethutil
.
RightPadBytes
([]
byte
(
name
),
32
))
)
if
lookup
.
Len
()
!=
0
{
return
ethutil
.
Bytes2Hex
(
lookup
.
Bytes
())
}
return
""
}
func
(
self
*
UiLib
)
PastPeers
()
*
ethutil
.
List
{
return
ethutil
.
NewList
(
eth
.
PastPeers
())
}
...
...
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