mirror of
https://source.quilibrium.com/quilibrium/ceremonyclient.git
synced 2024-12-24 23:55:18 +00:00
fix: silence in the master library
This commit is contained in:
parent
24a17ceddb
commit
ee1ebcce80
@ -300,11 +300,16 @@ func (e *MasterClockConsensusEngine) publishProof(
|
|||||||
|
|
||||||
e.masterTimeReel.Insert(frame)
|
e.masterTimeReel.Insert(frame)
|
||||||
|
|
||||||
if err := e.publishMessage(e.filter, frame); err != nil {
|
peers, err := e.GetMostAheadPeers()
|
||||||
return errors.Wrap(
|
if err != nil || len(peers) == 0 {
|
||||||
err,
|
// publish if we don't see anyone (empty peer list) or if we're the most
|
||||||
"publish proof",
|
// ahead:
|
||||||
)
|
if err := e.publishMessage(e.filter, frame); err != nil {
|
||||||
|
return errors.Wrap(
|
||||||
|
err,
|
||||||
|
"publish proof",
|
||||||
|
)
|
||||||
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
e.state = consensus.EngineStateCollecting
|
e.state = consensus.EngineStateCollecting
|
||||||
|
Loading…
Reference in New Issue
Block a user