aboutsummaryrefslogtreecommitdiffstats
path: root/miner/worker.go
diff options
context:
space:
mode:
authorPéter Szilágyi <peterke@gmail.com>2017-10-24 18:40:42 +0800
committerGitHub <noreply@github.com>2017-10-24 18:40:42 +0800
commit6d6a5a93370371a33fb815d7ae47b60c7021c86a (patch)
treeaa73dff1db3aa2566c2e74cf9ac37f13878fae80 /miner/worker.go
parentea5f2da39ad198e58107a79214419e31988c5e5a (diff)
downloadgo-tangerine-6d6a5a93370371a33fb815d7ae47b60c7021c86a.tar
go-tangerine-6d6a5a93370371a33fb815d7ae47b60c7021c86a.tar.gz
go-tangerine-6d6a5a93370371a33fb815d7ae47b60c7021c86a.tar.bz2
go-tangerine-6d6a5a93370371a33fb815d7ae47b60c7021c86a.tar.lz
go-tangerine-6d6a5a93370371a33fb815d7ae47b60c7021c86a.tar.xz
go-tangerine-6d6a5a93370371a33fb815d7ae47b60c7021c86a.tar.zst
go-tangerine-6d6a5a93370371a33fb815d7ae47b60c7021c86a.zip
cmd, consensus, core, miner: instatx clique for --dev (#15323)
* cmd, consensus, core, miner: instatx clique for --dev * cmd, consensus, clique: support configurable --dev block times * cmd, core: allow --dev to use persistent storage too
Diffstat (limited to 'miner/worker.go')
-rw-r--r--miner/worker.go5
1 files changed, 5 insertions, 0 deletions
diff --git a/miner/worker.go b/miner/worker.go
index bf24970f5..c1f848e32 100644
--- a/miner/worker.go
+++ b/miner/worker.go
@@ -269,6 +269,11 @@ func (self *worker) update() {
self.current.commitTransactions(self.mux, txset, self.chain, self.coinbase)
self.currentMu.Unlock()
+ } else {
+ // If we're mining, but nothing is being processed, wake on new transactions
+ if self.config.Clique != nil && self.config.Clique.Period == 0 {
+ self.commitNewWork()
+ }
}
// System stopped