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
b095bd32
Commit
b095bd32
authored
Oct 27, 2014
by
obscuren
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
events should be set prior to calling mainloop
parent
1d3f43f0
Changes
3
Show whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
6 additions
and
6 deletions
+6
-6
flags.go
cmd/mist/flags.go
+1
-1
javascript_runtime.go
javascript/javascript_runtime.go
+4
-4
cmd.go
utils/cmd.go
+1
-1
No files found.
cmd/mist/flags.go
View file @
b095bd32
...
@@ -67,7 +67,7 @@ func defaultAssetPath() string {
...
@@ -67,7 +67,7 @@ func defaultAssetPath() string {
// assume a debug build and use the source directory as
// assume a debug build and use the source directory as
// asset directory.
// asset directory.
pwd
,
_
:=
os
.
Getwd
()
pwd
,
_
:=
os
.
Getwd
()
if
pwd
==
path
.
Join
(
os
.
Getenv
(
"GOPATH"
),
"src"
,
"github.com"
,
"ethereum"
,
"go-ethereum"
,
"mist"
)
{
if
pwd
==
path
.
Join
(
os
.
Getenv
(
"GOPATH"
),
"src"
,
"github.com"
,
"ethereum"
,
"go-ethereum"
,
"
cmd"
,
"
mist"
)
{
assetPath
=
path
.
Join
(
pwd
,
"assets"
)
assetPath
=
path
.
Join
(
pwd
,
"assets"
)
}
else
{
}
else
{
switch
runtime
.
GOOS
{
switch
runtime
.
GOOS
{
...
...
javascript/javascript_runtime.go
View file @
b095bd32
...
@@ -41,7 +41,7 @@ func (jsre *JSRE) LoadExtFile(path string) {
...
@@ -41,7 +41,7 @@ func (jsre *JSRE) LoadExtFile(path string) {
}
}
func
(
jsre
*
JSRE
)
LoadIntFile
(
file
string
)
{
func
(
jsre
*
JSRE
)
LoadIntFile
(
file
string
)
{
assetPath
:=
path
.
Join
(
os
.
Getenv
(
"GOPATH"
),
"src"
,
"github.com"
,
"ethereum"
,
"go-ethereum"
,
"mist"
,
"assets"
,
"ext"
)
assetPath
:=
path
.
Join
(
os
.
Getenv
(
"GOPATH"
),
"src"
,
"github.com"
,
"ethereum"
,
"go-ethereum"
,
"
cmd"
,
"
mist"
,
"assets"
,
"ext"
)
jsre
.
LoadExtFile
(
path
.
Join
(
assetPath
,
file
))
jsre
.
LoadExtFile
(
path
.
Join
(
assetPath
,
file
))
}
}
...
@@ -62,13 +62,13 @@ func NewJSRE(ethereum *eth.Ethereum) *JSRE {
...
@@ -62,13 +62,13 @@ func NewJSRE(ethereum *eth.Ethereum) *JSRE {
re
.
LoadIntFile
(
"string.js"
)
re
.
LoadIntFile
(
"string.js"
)
re
.
LoadIntFile
(
"big.js"
)
re
.
LoadIntFile
(
"big.js"
)
// We have to make sure that, whoever calls this, calls "Stop"
go
re
.
mainLoop
()
// Subscribe to events
// Subscribe to events
mux
:=
ethereum
.
EventMux
()
mux
:=
ethereum
.
EventMux
()
re
.
events
=
mux
.
Subscribe
(
ethchain
.
NewBlockEvent
{})
re
.
events
=
mux
.
Subscribe
(
ethchain
.
NewBlockEvent
{})
// We have to make sure that, whoever calls this, calls "Stop"
go
re
.
mainLoop
()
re
.
Bind
(
"eth"
,
&
JSEthereum
{
re
.
pipe
,
re
.
Vm
,
ethereum
})
re
.
Bind
(
"eth"
,
&
JSEthereum
{
re
.
pipe
,
re
.
Vm
,
ethereum
})
re
.
initStdFuncs
()
re
.
initStdFuncs
()
...
...
utils/cmd.go
View file @
b095bd32
...
@@ -192,7 +192,7 @@ func DefaultAssetPath() string {
...
@@ -192,7 +192,7 @@ func DefaultAssetPath() string {
// assume a debug build and use the source directory as
// assume a debug build and use the source directory as
// asset directory.
// asset directory.
pwd
,
_
:=
os
.
Getwd
()
pwd
,
_
:=
os
.
Getwd
()
if
pwd
==
path
.
Join
(
os
.
Getenv
(
"GOPATH"
),
"src"
,
"github.com"
,
"ethereum"
,
"go-ethereum"
,
"mist"
)
{
if
pwd
==
path
.
Join
(
os
.
Getenv
(
"GOPATH"
),
"src"
,
"github.com"
,
"ethereum"
,
"go-ethereum"
,
"
cmd"
,
"
mist"
)
{
assetPath
=
path
.
Join
(
pwd
,
"assets"
)
assetPath
=
path
.
Join
(
pwd
,
"assets"
)
}
else
{
}
else
{
switch
runtime
.
GOOS
{
switch
runtime
.
GOOS
{
...
...
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