mirror of
https://source.quilibrium.com/quilibrium/ceremonyclient.git
synced 2024-12-24 07:35:19 +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)
|
||||
|
||||
if err := e.publishMessage(e.filter, frame); err != nil {
|
||||
return errors.Wrap(
|
||||
err,
|
||||
"publish proof",
|
||||
)
|
||||
peers, err := e.GetMostAheadPeers()
|
||||
if err != nil || len(peers) == 0 {
|
||||
// publish if we don't see anyone (empty peer list) or if we're the most
|
||||
// ahead:
|
||||
if err := e.publishMessage(e.filter, frame); err != nil {
|
||||
return errors.Wrap(
|
||||
err,
|
||||
"publish proof",
|
||||
)
|
||||
}
|
||||
}
|
||||
|
||||
e.state = consensus.EngineStateCollecting
|
||||
|
Loading…
Reference in New Issue
Block a user