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
0705bb3f
Commit
0705bb3f
authored
Sep 23, 2014
by
obscuren
Browse files
Options
Browse Files
Download
Plain Diff
Merge branch 'hotfix/0.6.5-1'
parents
ce149d27
48fd23dc
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
8 additions
and
0 deletions
+8
-0
miner.go
ethminer/miner.go
+8
-0
No files found.
ethminer/miner.go
View file @
0705bb3f
...
@@ -3,6 +3,7 @@ package ethminer
...
@@ -3,6 +3,7 @@ package ethminer
import
(
import
(
"bytes"
"bytes"
"sort"
"sort"
"time"
"github.com/ethereum/eth-go/ethchain"
"github.com/ethereum/eth-go/ethchain"
"github.com/ethereum/eth-go/ethlog"
"github.com/ethereum/eth-go/ethlog"
...
@@ -135,6 +136,12 @@ func (miner *Miner) listener() {
...
@@ -135,6 +136,12 @@ func (miner *Miner) listener() {
}
}
}
}
default
:
default
:
// This hack is only temporarily
if
len
(
miner
.
txs
)
==
0
{
time
.
Sleep
(
2
*
time
.
Second
)
continue
}
miner
.
mineNewBlock
()
miner
.
mineNewBlock
()
}
}
}
}
...
@@ -159,6 +166,7 @@ func (miner *Miner) Stop() {
...
@@ -159,6 +166,7 @@ func (miner *Miner) Stop() {
}
}
func
(
self
*
Miner
)
mineNewBlock
()
{
func
(
self
*
Miner
)
mineNewBlock
()
{
stateManager
:=
self
.
ethereum
.
StateManager
()
stateManager
:=
self
.
ethereum
.
StateManager
()
self
.
block
=
self
.
ethereum
.
BlockChain
()
.
NewBlock
(
self
.
coinbase
)
self
.
block
=
self
.
ethereum
.
BlockChain
()
.
NewBlock
(
self
.
coinbase
)
...
...
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