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
a3cc4b0b
Commit
a3cc4b0b
authored
May 10, 2014
by
obscuren
Browse files
Options
Browse Files
Download
Plain Diff
Merge branch 'release/poc5-rc3' into develop
parents
faa3aa14
23fc50c6
Changes
4
Hide whitespace changes
Inline
Side-by-side
Showing
4 changed files
with
5 additions
and
5 deletions
+5
-5
README.md
README.md
+1
-1
gui.go
ethereal/ui/gui.go
+2
-2
ui_lib.go
ethereal/ui/ui_lib.go
+1
-1
compile.go
utils/compile.go
+1
-1
No files found.
README.md
View file @
a3cc4b0b
...
@@ -5,7 +5,7 @@ Ethereum
...
@@ -5,7 +5,7 @@ Ethereum
Ethereum Go Client © 2014 Jeffrey Wilcke.
Ethereum Go Client © 2014 Jeffrey Wilcke.
Current state: Proof of Concept 5.0 RC
1
.
Current state: Proof of Concept 5.0 RC
3
.
For the development package please see the
[
eth-go package
](
https://github.com/ethereum/eth-go
)
.
For the development package please see the
[
eth-go package
](
https://github.com/ethereum/eth-go
)
.
...
...
ethereal/ui/gui.go
View file @
a3cc4b0b
...
@@ -67,7 +67,7 @@ func (gui *Gui) Start(assetPath string) {
...
@@ -67,7 +67,7 @@ func (gui *Gui) Start(assetPath string) {
Init
:
func
(
p
*
ethpub
.
PTx
,
obj
qml
.
Object
)
{
p
.
Value
=
""
;
p
.
Hash
=
""
;
p
.
Address
=
""
},
Init
:
func
(
p
*
ethpub
.
PTx
,
obj
qml
.
Object
)
{
p
.
Value
=
""
;
p
.
Hash
=
""
;
p
.
Address
=
""
},
}})
}})
ethutil
.
Config
.
SetClientString
(
fmt
.
Sprintf
(
"/Ethereal v%s"
,
"0.5.0 RC
2
"
))
ethutil
.
Config
.
SetClientString
(
fmt
.
Sprintf
(
"/Ethereal v%s"
,
"0.5.0 RC
3
"
))
ethutil
.
Config
.
Log
.
Infoln
(
"[GUI] Starting GUI"
)
ethutil
.
Config
.
Log
.
Infoln
(
"[GUI] Starting GUI"
)
// Create a new QML engine
// Create a new QML engine
gui
.
engine
=
qml
.
NewEngine
()
gui
.
engine
=
qml
.
NewEngine
()
...
@@ -223,7 +223,7 @@ func (gui *Gui) Transact(recipient, value, gas, gasPrice, data string) (*ethpub.
...
@@ -223,7 +223,7 @@ func (gui *Gui) Transact(recipient, value, gas, gasPrice, data string) (*ethpub.
func
(
gui
*
Gui
)
Create
(
recipient
,
value
,
gas
,
gasPrice
,
data
string
)
(
*
ethpub
.
PReceipt
,
error
)
{
func
(
gui
*
Gui
)
Create
(
recipient
,
value
,
gas
,
gasPrice
,
data
string
)
(
*
ethpub
.
PReceipt
,
error
)
{
keyPair
:=
ethutil
.
Config
.
Db
.
GetKeys
()[
0
]
keyPair
:=
ethutil
.
Config
.
Db
.
GetKeys
()[
0
]
mainInput
,
initInput
:=
mutan
.
PreP
rocess
(
data
)
mainInput
,
initInput
:=
mutan
.
PreP
arse
(
data
)
return
gui
.
pub
.
Create
(
ethutil
.
Hex
(
keyPair
.
PrivateKey
),
value
,
gas
,
gasPrice
,
initInput
,
mainInput
)
return
gui
.
pub
.
Create
(
ethutil
.
Hex
(
keyPair
.
PrivateKey
),
value
,
gas
,
gasPrice
,
initInput
,
mainInput
)
}
}
ethereal/ui/ui_lib.go
View file @
a3cc4b0b
...
@@ -121,7 +121,7 @@ func DefaultAssetPath() string {
...
@@ -121,7 +121,7 @@ func DefaultAssetPath() string {
func
(
ui
*
UiLib
)
DebugTx
(
recipient
,
valueStr
,
gasStr
,
gasPriceStr
,
data
string
)
{
func
(
ui
*
UiLib
)
DebugTx
(
recipient
,
valueStr
,
gasStr
,
gasPriceStr
,
data
string
)
{
state
:=
ui
.
eth
.
BlockChain
()
.
CurrentBlock
.
State
()
state
:=
ui
.
eth
.
BlockChain
()
.
CurrentBlock
.
State
()
mainInput
,
_
:=
mutan
.
PreP
rocess
(
data
)
mainInput
,
_
:=
mutan
.
PreP
arse
(
data
)
callerScript
,
err
:=
utils
.
Compile
(
mainInput
)
callerScript
,
err
:=
utils
.
Compile
(
mainInput
)
if
err
!=
nil
{
if
err
!=
nil
{
ethutil
.
Config
.
Log
.
Debugln
(
err
)
ethutil
.
Config
.
Log
.
Debugln
(
err
)
...
...
utils/compile.go
View file @
a3cc4b0b
...
@@ -24,7 +24,7 @@ func Compile(script string) ([]byte, error) {
...
@@ -24,7 +24,7 @@ func Compile(script string) ([]byte, error) {
func
CompileScript
(
script
string
)
([]
byte
,
[]
byte
,
error
)
{
func
CompileScript
(
script
string
)
([]
byte
,
[]
byte
,
error
)
{
// Preprocess
// Preprocess
mainInput
,
initInput
:=
mutan
.
PreP
rocess
(
script
)
mainInput
,
initInput
:=
mutan
.
PreP
arse
(
script
)
// Compile main script
// Compile main script
mainScript
,
err
:=
Compile
(
mainInput
)
mainScript
,
err
:=
Compile
(
mainInput
)
if
err
!=
nil
{
if
err
!=
nil
{
...
...
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