From 6d6a5a93370371a33fb815d7ae47b60c7021c86a Mon Sep 17 00:00:00 2001 From: Péter Szilágyi Date: Tue, 24 Oct 2017 13:40:42 +0300 Subject: 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 --- miner/worker.go | 5 +++++ 1 file changed, 5 insertions(+) (limited to 'miner') 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 -- cgit