mirror of
https://github.com/QuilibriumNetwork/ceremonyclient.git
synced 2026-02-21 10:27:26 +08:00
Stop master clock spin (#334)
This commit is contained in:
parent
f3e502a2d1
commit
b3cc442efd
@ -1,6 +1,7 @@
|
||||
package master
|
||||
|
||||
import (
|
||||
"bytes"
|
||||
gcrypto "crypto"
|
||||
"encoding/hex"
|
||||
"math/big"
|
||||
@ -228,6 +229,10 @@ func (e *MasterClockConsensusEngine) Start() <-chan error {
|
||||
}()
|
||||
|
||||
go func() {
|
||||
if !bytes.Equal(e.pubSub.GetPeerID(), []byte(e.beacon)) {
|
||||
return
|
||||
}
|
||||
|
||||
for e.state < consensus.EngineStateStopping {
|
||||
frame, err := e.masterTimeReel.Head()
|
||||
if err != nil {
|
||||
|
||||
Loading…
Reference in New Issue
Block a user