diff options
Diffstat (limited to 'core/consensus.go')
-rw-r--r-- | core/consensus.go | 5 |
1 files changed, 4 insertions, 1 deletions
diff --git a/core/consensus.go b/core/consensus.go index c781de1..5c9823b 100644 --- a/core/consensus.go +++ b/core/consensus.go @@ -430,7 +430,10 @@ func (con *Consensus) Run(initBlock *types.Block) { for { <-con.tickerObj.Tick() for _, tick := range ticks { - go func(tick chan struct{}) { tick <- struct{}{} }(tick) + select { + case tick <- struct{}{}: + default: + } } } } |