This commit is contained in:
Cassandra Heart 2024-02-20 14:01:10 -06:00 committed by GitHub
parent ab700df594
commit 5405452f3e
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194
5 changed files with 41 additions and 17 deletions

View File

@ -886,11 +886,11 @@ func logoVersion(width int) string {
out += " ####################################### ########\n"
out += " ############################# ##\n"
out += " \n"
out += " Quilibrium Node - v1.2.10 Dawn\n"
out += " Quilibrium Node - v1.2.11 Dawn\n"
out += " \n"
out += " DB Console\n"
} else {
out = "Quilibrium Node - v1.2.10 Dawn - DB Console\n"
out = "Quilibrium Node - v1.2.11 Dawn - DB Console\n"
}
return out
}

View File

@ -83,6 +83,7 @@ type CeremonyDataClockConsensusEngine struct {
stagedLobbyStateTransitions *protobufs.CeremonyLobbyStateTransition
minimumPeersRequired int
statsClient protobufs.NodeStatsClient
currentReceivingSyncPeers int
frameChan chan *protobufs.ClockFrame
executionEngines map[string]execution.ExecutionEngine
@ -219,6 +220,7 @@ func NewCeremonyDataClockConsensusEngine(
0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00,
0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00,
},
currentReceivingSyncPeers: 0,
lastFrameReceivedAt: time.Time{},
frameProverTrie: &tries.RollingFrecencyCritbitTrie{},
inclusionProver: inclusionProver,

View File

@ -30,6 +30,28 @@ func (e *CeremonyDataClockConsensusEngine) GetCompressedSyncFrames(
zap.Uint64("to_frame_number", request.ToFrameNumber),
)
if e.currentReceivingSyncPeers > 4 {
e.logger.Info(
"currently processing maximum sync requests, returning",
)
if err := server.SendMsg(
&protobufs.ClockFramesResponse{
Filter: request.Filter,
FromFrameNumber: 0,
ToFrameNumber: 0,
ClockFrames: []*protobufs.ClockFrame{},
},
); err != nil {
return errors.Wrap(err, "get compressed sync frames")
}
return nil
}
e.currentReceivingSyncPeers++
defer func() { e.currentReceivingSyncPeers-- }()
from := request.FromFrameNumber
parent := request.ParentSelector

View File

@ -55,9 +55,9 @@ func GetMinimumVersionCutoff() time.Time {
}
func GetMinimumVersion() []byte {
return []byte{0x01, 0x02, 0x0A}
return []byte{0x01, 0x02, 0x0B}
}
func GetVersion() []byte {
return []byte{0x01, 0x02, 0x0A}
return []byte{0x01, 0x02, 0x0B}
}

View File

@ -306,5 +306,5 @@ func printLogo() {
func printVersion() {
fmt.Println(" ")
fmt.Println(" Quilibrium Node - v1.2.10 Dawn")
fmt.Println(" Quilibrium Node - v1.2.11 Dawn")
}