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
9f488683
Commit
9f488683
authored
Aug 15, 2014
by
obscuren
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Moved over to hardcoded v1 of Go QML
parent
df0c4326
Changes
7
Hide whitespace changes
Inline
Side-by-side
Showing
7 changed files
with
31 additions
and
22 deletions
+31
-22
debugger.go
ethereal/debugger.go
+1
-1
ext_app.go
ethereal/ext_app.go
+1
-1
gui.go
ethereal/gui.go
+1
-1
html_container.go
ethereal/html_container.go
+1
-1
main.go
ethereal/main.go
+25
-16
qml_container.go
ethereal/qml_container.go
+1
-1
ui_lib.go
ethereal/ui_lib.go
+1
-1
No files found.
ethereal/debugger.go
View file @
9f488683
...
...
@@ -11,7 +11,7 @@ import (
"github.com/ethereum/eth-go/ethutil"
"github.com/ethereum/eth-go/ethvm"
"github.com/ethereum/go-ethereum/utils"
"g
ithub.com/go-qml/qml
"
"g
opkg.in/qml.v1
"
)
type
DebuggerWindow
struct
{
...
...
ethereal/ext_app.go
View file @
9f488683
...
...
@@ -8,7 +8,7 @@ import (
"github.com/ethereum/eth-go/ethreact"
"github.com/ethereum/eth-go/ethstate"
"github.com/ethereum/go-ethereum/javascript"
"g
ithub.com/go-qml/qml
"
"g
opkg.in/qml.v1
"
)
type
AppContainer
interface
{
...
...
ethereal/gui.go
View file @
9f488683
...
...
@@ -18,7 +18,7 @@ import (
"github.com/ethereum/eth-go/ethutil"
"github.com/ethereum/eth-go/ethwire"
"github.com/ethereum/go-ethereum/utils"
"g
ithub.com/go-qml/qml
"
"g
opkg.in/qml.v1
"
)
var
logger
=
ethlog
.
NewLogger
(
"GUI"
)
...
...
ethereal/html_container.go
View file @
9f488683
...
...
@@ -14,8 +14,8 @@ import (
"github.com/ethereum/eth-go/ethstate"
"github.com/ethereum/eth-go/ethutil"
"github.com/ethereum/go-ethereum/javascript"
"github.com/go-qml/qml"
"github.com/howeyc/fsnotify"
"gopkg.in/qml.v1"
)
type
HtmlApplication
struct
{
...
...
ethereal/main.go
View file @
9f488683
...
...
@@ -4,9 +4,10 @@ import (
"os"
"runtime"
"github.com/ethereum/eth-go"
"github.com/ethereum/eth-go/ethlog"
"github.com/ethereum/go-ethereum/utils"
"g
ithub.com/go-qml/qml
"
"g
opkg.in/qml.v1
"
)
const
(
...
...
@@ -14,21 +15,9 @@ const (
Version
=
"0.6.1"
)
func
main
()
{
runtime
.
GOMAXPROCS
(
runtime
.
NumCPU
())
// This is a bit of a cheat, but ey!
os
.
Setenv
(
"QTWEBKIT_INSPECTOR_SERVER"
,
"127.0.0.1:99999"
)
qml
.
Init
(
nil
)
var
interrupted
=
false
utils
.
RegisterInterrupt
(
func
(
os
.
Signal
)
{
interrupted
=
true
})
utils
.
HandleInterrupt
()
var
ethereum
*
eth
.
Ethereum
func
run
()
error
{
// precedence: code-internal flag default < config file < environment variables < command line
Init
()
// parsing command line
...
...
@@ -47,7 +36,7 @@ func main() {
clientIdentity
:=
utils
.
NewClientIdentity
(
ClientIdentifier
,
Version
,
Identifier
)
ethereum
:
=
utils
.
NewEthereum
(
db
,
clientIdentity
,
keyManager
,
UseUPnP
,
OutboundPort
,
MaxPeer
)
ethereum
=
utils
.
NewEthereum
(
db
,
clientIdentity
,
keyManager
,
UseUPnP
,
OutboundPort
,
MaxPeer
)
if
ShowGenesis
{
utils
.
ShowGenesis
(
ethereum
)
...
...
@@ -65,6 +54,26 @@ func main() {
utils
.
StartEthereum
(
ethereum
,
UseSeed
)
// gui blocks the main thread
gui
.
Start
(
AssetPath
)
return
nil
}
func
main
()
{
runtime
.
GOMAXPROCS
(
runtime
.
NumCPU
())
// This is a bit of a cheat, but ey!
os
.
Setenv
(
"QTWEBKIT_INSPECTOR_SERVER"
,
"127.0.0.1:99999"
)
//qml.Init(nil)
qml
.
Run
(
run
)
var
interrupted
=
false
utils
.
RegisterInterrupt
(
func
(
os
.
Signal
)
{
interrupted
=
true
})
utils
.
HandleInterrupt
()
// we need to run the interrupt callbacks in case gui is closed
// this skips if we got here by actual interrupt stopping the GUI
if
!
interrupted
{
...
...
ethereal/qml_container.go
View file @
9f488683
...
...
@@ -8,7 +8,7 @@ import (
"github.com/ethereum/eth-go/ethpub"
"github.com/ethereum/eth-go/ethstate"
"github.com/ethereum/eth-go/ethutil"
"g
ithub.com/go-qml/qml
"
"g
opkg.in/qml.v1
"
)
type
QmlApplication
struct
{
...
...
ethereal/ui_lib.go
View file @
9f488683
...
...
@@ -9,7 +9,7 @@ import (
"github.com/ethereum/eth-go/ethpipe"
"github.com/ethereum/eth-go/ethutil"
"github.com/ethereum/go-ethereum/javascript"
"g
ithub.com/go-qml/qml
"
"g
opkg.in/qml.v1
"
)
type
memAddr
struct
{
...
...
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