diff options
author | Péter Szilágyi <peterke@gmail.com> | 2017-10-24 18:40:42 +0800 |
---|---|---|
committer | GitHub <noreply@github.com> | 2017-10-24 18:40:42 +0800 |
commit | 6d6a5a93370371a33fb815d7ae47b60c7021c86a (patch) | |
tree | aa73dff1db3aa2566c2e74cf9ac37f13878fae80 /miner/worker.go | |
parent | ea5f2da39ad198e58107a79214419e31988c5e5a (diff) | |
download | go-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.go | 5 |
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 |