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
5c9fd191
Commit
5c9fd191
authored
Jul 29, 2014
by
obscuren
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
A few start up optimisations
parent
beca2234
Changes
4
Hide whitespace changes
Inline
Side-by-side
Showing
4 changed files
with
11 additions
and
10 deletions
+11
-10
wallet.qml
ethereal/assets/qml/wallet.qml
+1
-1
gui.go
ethereal/gui.go
+2
-2
html_container.go
ethereal/html_container.go
+7
-6
qml_container.go
ethereal/qml_container.go
+1
-1
No files found.
ethereal/assets/qml/wallet.qml
View file @
5c9fd191
...
@@ -690,7 +690,7 @@ ApplicationWindow {
...
@@ -690,7 +690,7 @@ ApplicationWindow {
anchors.left
:
aboutIcon
.
right
anchors.left
:
aboutIcon
.
right
anchors.leftMargin
:
10
anchors.leftMargin
:
10
font.pointSize
:
12
font.pointSize
:
12
text
:
"<h2>Ethereal</h2><br><h3>Development</h3>Jeffrey Wilcke<br>Maran Hidskes<br>Viktor Trón<br>"
text
:
"<h2>Ethereal
- Adrastea
</h2><br><h3>Development</h3>Jeffrey Wilcke<br>Maran Hidskes<br>Viktor Trón<br>"
}
}
}
}
...
...
ethereal/gui.go
View file @
5c9fd191
...
@@ -144,10 +144,10 @@ func (gui *Gui) showWallet(context *qml.Context) (*qml.Window, error) {
...
@@ -144,10 +144,10 @@ func (gui *Gui) showWallet(context *qml.Context) (*qml.Window, error) {
win
:=
gui
.
createWindow
(
component
)
win
:=
gui
.
createWindow
(
component
)
go
func
()
{
go
func
()
{
gui
.
setInitialBlockChain
()
g
o
g
ui
.
setInitialBlockChain
()
gui
.
loadAddressBook
()
gui
.
loadAddressBook
()
gui
.
readPreviousTransactions
()
gui
.
setPeerInfo
()
gui
.
setPeerInfo
()
gui
.
readPreviousTransactions
()
}()
}()
go
gui
.
update
()
go
gui
.
update
()
...
...
ethereal/html_container.go
View file @
5c9fd191
...
@@ -2,17 +2,18 @@ package main
...
@@ -2,17 +2,18 @@ package main
import
(
import
(
"errors"
"errors"
"io/ioutil"
"net/url"
"os"
"path"
"path/filepath"
"github.com/ethereum/eth-go/ethchain"
"github.com/ethereum/eth-go/ethchain"
"github.com/ethereum/eth-go/ethpub"
"github.com/ethereum/eth-go/ethpub"
"github.com/ethereum/eth-go/ethstate"
"github.com/ethereum/eth-go/ethstate"
"github.com/ethereum/eth-go/ethutil"
"github.com/ethereum/eth-go/ethutil"
"github.com/go-qml/qml"
"github.com/go-qml/qml"
"github.com/howeyc/fsnotify"
"github.com/howeyc/fsnotify"
"io/ioutil"
"net/url"
"os"
"path"
"path/filepath"
)
)
type
HtmlApplication
struct
{
type
HtmlApplication
struct
{
...
@@ -41,7 +42,7 @@ func (app *HtmlApplication) Create() error {
...
@@ -41,7 +42,7 @@ func (app *HtmlApplication) Create() error {
return
errors
.
New
(
"Ethereum package not yet supported"
)
return
errors
.
New
(
"Ethereum package not yet supported"
)
// TODO
// TODO
ethutil
.
OpenPackage
(
app
.
path
)
//
ethutil.OpenPackage(app.path)
}
}
win
:=
component
.
CreateWindow
(
nil
)
win
:=
component
.
CreateWindow
(
nil
)
...
...
ethereal/qml_container.go
View file @
5c9fd191
...
@@ -25,7 +25,7 @@ func (app *QmlApplication) Create() error {
...
@@ -25,7 +25,7 @@ func (app *QmlApplication) Create() error {
path
:=
string
(
app
.
path
)
path
:=
string
(
app
.
path
)
// For some reason for windows we get /c:/path/to/something, windows doesn't like the first slash but is fine with the others so we are removing it
// For some reason for windows we get /c:/path/to/something, windows doesn't like the first slash but is fine with the others so we are removing it
if
string
(
app
.
path
[
0
])
==
"/"
&&
runtime
.
GOOS
==
"windows"
{
if
app
.
path
[
0
]
==
'/'
&&
runtime
.
GOOS
==
"windows"
{
path
=
app
.
path
[
1
:
]
path
=
app
.
path
[
1
:
]
}
}
...
...
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