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
98f21669
Commit
98f21669
authored
Jul 02, 2014
by
obscuren
Browse files
Options
Browse Files
Download
Plain Diff
Merge branch 'develop'
parents
4918531d
7d0004f0
Changes
8
Hide whitespace changes
Inline
Side-by-side
Showing
8 changed files
with
18 additions
and
35 deletions
+18
-35
Makefile
ethereal/Makefile
+0
-22
debugger.go
ethereal/debugger.go
+3
-2
ext_app.go
ethereal/ext_app.go
+1
-1
gui.go
ethereal/gui.go
+10
-5
html_container.go
ethereal/html_container.go
+1
-1
main.go
ethereal/main.go
+1
-2
qml_container.go
ethereal/qml_container.go
+1
-1
ui_lib.go
ethereal/ui_lib.go
+1
-1
No files found.
ethereal/Makefile
deleted
100644 → 0
View file @
4918531d
UNAME
=
$(
shell
uname
)
FILES
=
qml
*
.png
GOPATH
=
$(PWD)
# Default is building
all
:
go get
-d
cp
*
.go
$(GOPATH)
/src/github.com/ethereum/go-ethereum
cp
-r
ui
$(GOPATH)
/src/github.com/ethereum/go-ethereum
go build
install
:
# Linux build
ifeq
($(UNAME),Linux)
cp
-r
assets/*
/usr/share/ethereal
cp
go-ethereum
/usr/local/bin/ethereal
endif
# OS X build
ifeq
($(UNAME),Darwin)
# Execute py script
endif
ethereal/
ui/
debugger.go
→
ethereal/debugger.go
View file @
98f21669
package
ethui
package
main
import
(
import
(
"fmt"
"fmt"
...
@@ -124,11 +124,12 @@ func (self *DebuggerWindow) Debug(valueStr, gasStr, gasPriceStr, scriptStr, data
...
@@ -124,11 +124,12 @@ func (self *DebuggerWindow) Debug(valueStr, gasStr, gasPriceStr, scriptStr, data
Value
:
ethutil
.
Big
(
valueStr
),
Value
:
ethutil
.
Big
(
valueStr
),
})
})
vm
.
Verbose
=
true
vm
.
Verbose
=
true
vm
.
Hook
=
self
.
Db
.
halting
self
.
Db
.
done
=
false
self
.
Db
.
done
=
false
self
.
Logf
(
"callsize %d"
,
len
(
script
))
self
.
Logf
(
"callsize %d"
,
len
(
script
))
go
func
()
{
go
func
()
{
ret
,
g
,
err
:=
callerClosure
.
Call
(
vm
,
data
,
self
.
Db
.
halting
)
ret
,
g
,
err
:=
callerClosure
.
Call
(
vm
,
data
)
tot
:=
new
(
big
.
Int
)
.
Mul
(
g
,
gasPrice
)
tot
:=
new
(
big
.
Int
)
.
Mul
(
g
,
gasPrice
)
self
.
Logf
(
"gas usage %v total price = %v (%v)"
,
g
,
tot
,
ethutil
.
CurrencyToString
(
tot
))
self
.
Logf
(
"gas usage %v total price = %v (%v)"
,
g
,
tot
,
ethutil
.
CurrencyToString
(
tot
))
if
err
!=
nil
{
if
err
!=
nil
{
...
...
ethereal/
ui/
ext_app.go
→
ethereal/ext_app.go
View file @
98f21669
package
ethui
package
main
import
(
import
(
"fmt"
"fmt"
...
...
ethereal/
ui/
gui.go
→
ethereal/gui.go
View file @
98f21669
package
ethui
package
main
import
(
import
(
"bytes"
"bytes"
...
@@ -40,8 +40,7 @@ type Gui struct {
...
@@ -40,8 +40,7 @@ type Gui struct {
}
}
// Create GUI, but doesn't start it
// Create GUI, but doesn't start it
func
New
(
ethereum
*
eth
.
Ethereum
,
session
string
,
logLevel
int
)
*
Gui
{
func
NewWindow
(
ethereum
*
eth
.
Ethereum
,
session
string
,
logLevel
int
)
*
Gui
{
db
,
err
:=
ethdb
.
NewLDBDatabase
(
"tx_database"
)
db
,
err
:=
ethdb
.
NewLDBDatabase
(
"tx_database"
)
if
err
!=
nil
{
if
err
!=
nil
{
panic
(
err
)
panic
(
err
)
...
@@ -217,7 +216,9 @@ func (gui *Gui) loadAddressBook() {
...
@@ -217,7 +216,9 @@ func (gui *Gui) loadAddressBook() {
nameReg
:=
ethpub
.
EthereumConfig
(
gui
.
eth
.
StateManager
())
.
NameReg
()
nameReg
:=
ethpub
.
EthereumConfig
(
gui
.
eth
.
StateManager
())
.
NameReg
()
if
nameReg
!=
nil
{
if
nameReg
!=
nil
{
nameReg
.
State
()
.
EachStorage
(
func
(
name
string
,
value
*
ethutil
.
Value
)
{
nameReg
.
State
()
.
EachStorage
(
func
(
name
string
,
value
*
ethutil
.
Value
)
{
gui
.
win
.
Root
()
.
Call
(
"addAddress"
,
struct
{
Name
,
Address
string
}{
name
,
ethutil
.
Bytes2Hex
(
value
.
Bytes
())})
if
name
[
0
]
!=
0
{
gui
.
win
.
Root
()
.
Call
(
"addAddress"
,
struct
{
Name
,
Address
string
}{
name
,
ethutil
.
Bytes2Hex
(
value
.
Bytes
())})
}
})
})
}
}
}
}
...
@@ -273,7 +274,11 @@ func (gui *Gui) update() {
...
@@ -273,7 +274,11 @@ func (gui *Gui) update() {
reactor
.
Subscribe
(
"newBlock"
,
blockChan
)
reactor
.
Subscribe
(
"newBlock"
,
blockChan
)
reactor
.
Subscribe
(
"newTx:pre"
,
txChan
)
reactor
.
Subscribe
(
"newTx:pre"
,
txChan
)
reactor
.
Subscribe
(
"newTx:post"
,
txChan
)
reactor
.
Subscribe
(
"newTx:post"
,
txChan
)
//reactor.Subscribe("object:"+string(namereg), objectChan)
nameReg
:=
ethpub
.
EthereumConfig
(
gui
.
eth
.
StateManager
())
.
NameReg
()
if
nameReg
!=
nil
{
reactor
.
Subscribe
(
"object:"
+
string
(
nameReg
.
Address
()),
objectChan
)
}
reactor
.
Subscribe
(
"peerList"
,
peerChan
)
reactor
.
Subscribe
(
"peerList"
,
peerChan
)
ticker
:=
time
.
NewTicker
(
5
*
time
.
Second
)
ticker
:=
time
.
NewTicker
(
5
*
time
.
Second
)
...
...
ethereal/
ui/
html_container.go
→
ethereal/html_container.go
View file @
98f21669
package
ethui
package
main
import
(
import
(
"errors"
"errors"
...
...
ethereal/main.go
View file @
98f21669
...
@@ -2,7 +2,6 @@ package main
...
@@ -2,7 +2,6 @@ package main
import
(
import
(
"github.com/ethereum/eth-go/ethlog"
"github.com/ethereum/eth-go/ethlog"
"github.com/ethereum/go-ethereum/ethereal/ui"
"github.com/ethereum/go-ethereum/utils"
"github.com/ethereum/go-ethereum/utils"
"github.com/go-qml/qml"
"github.com/go-qml/qml"
"os"
"os"
...
@@ -47,7 +46,7 @@ func main() {
...
@@ -47,7 +46,7 @@ func main() {
utils
.
StartRpc
(
ethereum
,
RpcPort
)
utils
.
StartRpc
(
ethereum
,
RpcPort
)
}
}
gui
:=
ethui
.
Ne
w
(
ethereum
,
KeyRing
,
LogLevel
)
gui
:=
NewWindo
w
(
ethereum
,
KeyRing
,
LogLevel
)
utils
.
RegisterInterrupt
(
func
(
os
.
Signal
)
{
utils
.
RegisterInterrupt
(
func
(
os
.
Signal
)
{
gui
.
Stop
()
gui
.
Stop
()
...
...
ethereal/
ui/qml_app
.go
→
ethereal/
qml_container
.go
View file @
98f21669
package
ethui
package
main
import
(
import
(
"github.com/ethereum/eth-go/ethchain"
"github.com/ethereum/eth-go/ethchain"
...
...
ethereal/ui
/ui
_lib.go
→
ethereal/ui_lib.go
View file @
98f21669
package
ethui
package
main
import
(
import
(
"github.com/ethereum/eth-go"
"github.com/ethereum/eth-go"
...
...
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