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
20d4e527
Commit
20d4e527
authored
May 10, 2016
by
Jeffrey Wilcke
Browse files
Options
Browse Files
Download
Plain Diff
Merge pull request #2537 from obscuren/hotfix-pending-statu
miner: fixed pending state by not shutting down update loop
parents
5782164a
a824c3f0
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
0 additions
and
4 deletions
+0
-4
worker.go
miner/worker.go
+0
-4
No files found.
miner/worker.go
View file @
20d4e527
...
...
@@ -145,7 +145,6 @@ func newWorker(config *core.ChainConfig, coinbase common.Address, eth core.Backe
fullValidation
:
false
,
}
worker
.
events
=
worker
.
mux
.
Subscribe
(
core
.
ChainHeadEvent
{},
core
.
ChainSideEvent
{},
core
.
TxPreEvent
{})
worker
.
wg
.
Add
(
1
)
go
worker
.
update
()
go
worker
.
wait
()
...
...
@@ -188,8 +187,6 @@ func (self *worker) start() {
}
func
(
self
*
worker
)
stop
()
{
// Quit update.
self
.
events
.
Unsubscribe
()
self
.
wg
.
Wait
()
self
.
mu
.
Lock
()
...
...
@@ -224,7 +221,6 @@ func (self *worker) unregister(agent Agent) {
}
func
(
self
*
worker
)
update
()
{
defer
self
.
wg
.
Done
()
for
event
:=
range
self
.
events
.
Chan
()
{
// A real event arrived, process interesting content
switch
ev
:=
event
.
Data
.
(
type
)
{
...
...
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