mirror of
https://github.com/QuilibriumNetwork/ceremonyclient.git
synced 2026-02-21 10:27:26 +08:00
don't try to make workers run if they aren't in ready state
This commit is contained in:
parent
ca5d0579ea
commit
f2a3bd2d8e
@ -563,6 +563,9 @@ func (e *DataClockConsensusEngine) PerformTimeProof(
|
||||
})
|
||||
}
|
||||
}
|
||||
if len(actives) < 3 {
|
||||
return []mt.DataBlock{}
|
||||
}
|
||||
output := make([]mt.DataBlock, len(actives))
|
||||
e.logger.Info(
|
||||
"creating data shard ring proof",
|
||||
|
||||
@ -292,7 +292,7 @@ func (e *DataClockConsensusEngine) processFrame(
|
||||
|
||||
outputs := e.PerformTimeProof(latestFrame, latestFrame.Difficulty, ring)
|
||||
if outputs == nil || len(outputs) < 3 {
|
||||
e.logger.Error("could not successfully build proof, reattempting")
|
||||
e.logger.Info("workers not yet available for proving")
|
||||
return latestFrame
|
||||
}
|
||||
modulo := len(outputs)
|
||||
|
||||
Loading…
Reference in New Issue
Block a user