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
dbb2af60
Commit
dbb2af60
authored
Mar 23, 2015
by
Jeffrey Wilcke
Browse files
Options
Browse Files
Download
Plain Diff
Merge pull request #548 from tgerring/typescleanup
Fix Mist types build errors
parents
91a2275a
d186bf0d
Changes
4
Hide whitespace changes
Inline
Side-by-side
Showing
4 changed files
with
10 additions
and
10 deletions
+10
-10
bindings.go
cmd/mist/bindings.go
+1
-1
gui.go
cmd/mist/gui.go
+6
-5
html_container.go
cmd/mist/html_container.go
+2
-2
qml_container.go
cmd/mist/qml_container.go
+1
-2
No files found.
cmd/mist/bindings.go
View file @
dbb2af60
...
...
@@ -67,7 +67,7 @@ func (self *Gui) DumpState(hash, path string) {
i
,
_
:=
strconv
.
Atoi
(
hash
[
1
:
])
block
=
self
.
eth
.
ChainManager
()
.
GetBlockByNumber
(
uint64
(
i
))
}
else
{
block
=
self
.
eth
.
ChainManager
()
.
GetBlock
(
common
.
Hex
2Bytes
(
hash
))
block
=
self
.
eth
.
ChainManager
()
.
GetBlock
(
common
.
Hex
ToHash
(
hash
))
}
if
block
==
nil
{
...
...
cmd/mist/gui.go
View file @
dbb2af60
...
...
@@ -31,11 +31,11 @@ import (
"sort"
"time"
"github.com/ethereum/go-ethereum/common"
"github.com/ethereum/go-ethereum/core"
"github.com/ethereum/go-ethereum/core/types"
"github.com/ethereum/go-ethereum/eth"
"github.com/ethereum/go-ethereum/ethdb"
"github.com/ethereum/go-ethereum/common"
"github.com/ethereum/go-ethereum/logger"
"github.com/ethereum/go-ethereum/ui/qt/qwhisper"
"github.com/ethereum/go-ethereum/xeth"
...
...
@@ -230,7 +230,8 @@ func (self *Gui) loadMergedMiningOptions() {
func
(
gui
*
Gui
)
insertTransaction
(
window
string
,
tx
*
types
.
Transaction
)
{
var
inout
string
if
gui
.
eth
.
AccountManager
()
.
HasAccount
(
tx
.
From
())
{
from
,
_
:=
tx
.
From
()
if
gui
.
eth
.
AccountManager
()
.
HasAccount
(
common
.
Hex2Bytes
(
from
.
Hex
()))
{
inout
=
"send"
}
else
{
inout
=
"recv"
...
...
@@ -238,8 +239,8 @@ func (gui *Gui) insertTransaction(window string, tx *types.Transaction) {
var
(
ptx
=
xeth
.
NewTx
(
tx
)
send
=
common
.
Bytes2Hex
(
tx
.
From
()
)
rec
=
common
.
Bytes2Hex
(
tx
.
To
()
)
send
=
from
.
Hex
(
)
rec
=
tx
.
To
()
.
Hex
(
)
)
ptx
.
Sender
=
send
ptx
.
Address
=
rec
...
...
@@ -263,7 +264,7 @@ func (gui *Gui) readPreviousTransactions() {
}
func
(
gui
*
Gui
)
processBlock
(
block
*
types
.
Block
,
initial
bool
)
{
name
:=
common
.
Bytes2Hex
(
block
.
Coinbase
()
)
name
:=
block
.
Coinbase
()
.
Hex
(
)
b
:=
xeth
.
NewBlock
(
block
)
b
.
Name
=
name
...
...
cmd/mist/html_container.go
View file @
dbb2af60
...
...
@@ -29,8 +29,8 @@ import (
"path"
"path/filepath"
"github.com/ethereum/go-ethereum/core/types"
"github.com/ethereum/go-ethereum/common"
"github.com/ethereum/go-ethereum/core/types"
"github.com/ethereum/go-ethereum/xeth"
"github.com/howeyc/fsnotify"
"github.com/obscuren/qml"
...
...
@@ -139,7 +139,7 @@ func (app *HtmlApplication) Window() *qml.Window {
}
func
(
app
*
HtmlApplication
)
NewBlock
(
block
*
types
.
Block
)
{
b
:=
&
xeth
.
Block
{
Number
:
int
(
block
.
NumberU64
()),
Hash
:
common
.
Bytes2Hex
(
block
.
Hash
()
)}
b
:=
&
xeth
.
Block
{
Number
:
int
(
block
.
NumberU64
()),
Hash
:
block
.
Hash
()
.
Hex
(
)}
app
.
webView
.
Call
(
"onNewBlockCb"
,
b
)
}
...
...
cmd/mist/qml_container.go
View file @
dbb2af60
...
...
@@ -25,7 +25,6 @@ import (
"runtime"
"github.com/ethereum/go-ethereum/core/types"
"github.com/ethereum/go-ethereum/common"
"github.com/ethereum/go-ethereum/xeth"
"github.com/obscuren/qml"
)
...
...
@@ -68,7 +67,7 @@ func (app *QmlApplication) NewWatcher(quitChan chan bool) {
// Events
func
(
app
*
QmlApplication
)
NewBlock
(
block
*
types
.
Block
)
{
pblock
:=
&
xeth
.
Block
{
Number
:
int
(
block
.
NumberU64
()),
Hash
:
common
.
Bytes2Hex
(
block
.
Hash
()
)}
pblock
:=
&
xeth
.
Block
{
Number
:
int
(
block
.
NumberU64
()),
Hash
:
block
.
Hash
()
.
Hex
(
)}
app
.
win
.
Call
(
"onNewBlockCb"
,
pblock
)
}
...
...
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