good morning!!!!
Skip to content
GitLab
Explore
Sign in
Register
Primary navigation
Search or go to…
Project
B
bor
Manage
Activity
Members
Labels
Plan
Issues
Issue boards
Milestones
Iterations
Wiki
Requirements
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Snippets
Locked files
Build
Pipelines
Jobs
Pipeline schedules
Test cases
Artifacts
Deploy
Releases
Package registry
Container registry
Harbor Registry
Model registry
Operate
Environments
Terraform modules
Monitor
Incidents
Analyze
Value stream analytics
Contributor analytics
CI/CD analytics
Repository analytics
Code review analytics
Issue analytics
Insights
Model experiments
Help
Help
Support
GitLab documentation
Compare GitLab plans
GitLab community forum
Contribute to GitLab
Provide feedback
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
open
bor
Commits
d6acb74a
Commit
d6acb74a
authored
May 31, 2014
by
Jeffrey Wilcke
Browse files
Options
Downloads
Patches
Plain Diff
fixed logging issue that would otherwise crash the client. Fixes #68
parent
397e99fc
Branches
Branches containing commit
Tags
Tags containing commit
No related merge requests found
Changes
1
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
ethereal/ui/gui.go
+9
-6
9 additions, 6 deletions
ethereal/ui/gui.go
with
9 additions
and
6 deletions
ethereal/ui/gui.go
+
9
−
6
View file @
d6acb74a
...
@@ -87,6 +87,8 @@ func (gui *Gui) Start(assetPath string) {
...
@@ -87,6 +87,8 @@ func (gui *Gui) Start(assetPath string) {
win
,
err
=
gui
.
showKeyImport
(
context
)
win
,
err
=
gui
.
showKeyImport
(
context
)
}
else
{
}
else
{
win
,
err
=
gui
.
showWallet
(
context
)
win
,
err
=
gui
.
showWallet
(
context
)
ethutil
.
Config
.
Log
.
AddLogSystem
(
gui
)
}
}
if
err
!=
nil
{
if
err
!=
nil
{
ethutil
.
Config
.
Log
.
Infoln
(
"FATAL: asset not found: you can set an alternative asset path on on the command line using option 'asset_path'"
)
ethutil
.
Config
.
Log
.
Infoln
(
"FATAL: asset not found: you can set an alternative asset path on on the command line using option 'asset_path'"
)
...
@@ -94,11 +96,9 @@ func (gui *Gui) Start(assetPath string) {
...
@@ -94,11 +96,9 @@ func (gui *Gui) Start(assetPath string) {
panic
(
err
)
panic
(
err
)
}
}
win
.
Show
()
ethutil
.
Config
.
Log
.
AddLogSystem
(
gui
)
ethutil
.
Config
.
Log
.
Infoln
(
"[GUI] Starting GUI"
)
ethutil
.
Config
.
Log
.
Infoln
(
"[GUI] Starting GUI"
)
win
.
Show
()
win
.
Wait
()
win
.
Wait
()
gui
.
eth
.
Stop
()
gui
.
eth
.
Stop
()
...
@@ -174,10 +174,13 @@ var namereg = ethutil.FromHex("bb5f186604d057c1c5240ca2ae0f6430138ac010")
...
@@ -174,10 +174,13 @@ var namereg = ethutil.FromHex("bb5f186604d057c1c5240ca2ae0f6430138ac010")
func
(
gui
*
Gui
)
loadAddressBook
()
{
func
(
gui
*
Gui
)
loadAddressBook
()
{
gui
.
win
.
Root
()
.
Call
(
"clearAddress"
)
gui
.
win
.
Root
()
.
Call
(
"clearAddress"
)
gui
.
eth
.
StateManager
()
.
CurrentState
()
.
GetStateObject
(
namereg
)
.
State
()
.
EachStorage
(
func
(
name
string
,
value
*
ethutil
.
Value
)
{
stateObject
:=
gui
.
eth
.
StateManager
()
.
CurrentState
()
.
GetStateObject
(
namereg
)
if
stateObject
!=
nil
{
stateObject
.
State
()
.
EachStorage
(
func
(
name
string
,
value
*
ethutil
.
Value
)
{
gui
.
win
.
Root
()
.
Call
(
"addAddress"
,
struct
{
Name
,
Address
string
}{
name
,
ethutil
.
Hex
(
value
.
Bytes
())})
gui
.
win
.
Root
()
.
Call
(
"addAddress"
,
struct
{
Name
,
Address
string
}{
name
,
ethutil
.
Hex
(
value
.
Bytes
())})
})
})
}
}
}
func
(
gui
*
Gui
)
readPreviousTransactions
()
{
func
(
gui
*
Gui
)
readPreviousTransactions
()
{
it
:=
gui
.
txDb
.
Db
()
.
NewIterator
(
nil
,
nil
)
it
:=
gui
.
txDb
.
Db
()
.
NewIterator
(
nil
,
nil
)
...
...
This diff is collapsed.
Click to expand it.
Preview
0%
Loading
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Save comment
Cancel
Please
register
or
sign in
to comment