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
0f3c25b2
Commit
0f3c25b2
authored
Feb 13, 2015
by
obscuren
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Propagate blocks
parent
790de35e
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
2 additions
and
3 deletions
+2
-3
gui.go
cmd/mist/gui.go
+1
-3
worker.go
miner/worker.go
+1
-0
No files found.
cmd/mist/gui.go
View file @
0f3c25b2
...
...
@@ -412,9 +412,7 @@ func (gui *Gui) update() {
switch
ev
:=
ev
.
(
type
)
{
case
core
.
NewBlockEvent
:
gui
.
processBlock
(
ev
.
Block
,
false
)
if
bytes
.
Compare
(
ev
.
Block
.
Coinbase
(),
gui
.
address
())
==
0
{
gui
.
setWalletValue
(
gui
.
eth
.
ChainManager
()
.
State
()
.
GetBalance
(
gui
.
address
()),
nil
)
}
gui
.
setWalletValue
(
gui
.
eth
.
ChainManager
()
.
State
()
.
GetBalance
(
gui
.
address
()),
nil
)
case
core
.
TxPreEvent
:
tx
:=
ev
.
Tx
...
...
miner/worker.go
View file @
0f3c25b2
...
...
@@ -131,6 +131,7 @@ func (self *worker) wait() {
self
.
current
.
block
.
Header
()
.
Nonce
=
work
.
Nonce
self
.
chain
.
InsertChain
(
types
.
Blocks
{
self
.
current
.
block
})
self
.
mux
.
Post
(
core
.
NewMinedBlockEvent
{
self
.
current
.
block
})
}
break
}
...
...
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