Commit f4674ce3 authored by David Vorick's avatar David Vorick

do not grab a new block if the consensus set is not synced

parent 1d968168
......@@ -44,7 +44,9 @@ func (m *Miner) ProcessConsensusChange(cc modules.ConsensusChange) {
// There is a new parent block, the source block should be updated to keep
// the stale rate as low as possible.
m.newSourceBlock()
if cc.Synced {
m.newSourceBlock()
}
m.persist.RecentChange = cc.ID
err := m.save()
if err != nil {
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment