mirror of
				https://source.quilibrium.com/quilibrium/ceremonyclient.git
				synced 2025-11-04 03:57:44 +00:00 
			
		
		
		
	v1.2.11 (#58)
This commit is contained in:
		
							parent
							
								
									ab700df594
								
							
						
					
					
						commit
						5405452f3e
					
				@ -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
 | 
			
		||||
}
 | 
			
		||||
 | 
			
		||||
@ -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,18 +220,19 @@ func NewCeremonyDataClockConsensusEngine(
 | 
			
		||||
			0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00,
 | 
			
		||||
			0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00,
 | 
			
		||||
		},
 | 
			
		||||
		lastFrameReceivedAt:   time.Time{},
 | 
			
		||||
		frameProverTrie:       &tries.RollingFrecencyCritbitTrie{},
 | 
			
		||||
		inclusionProver:       inclusionProver,
 | 
			
		||||
		syncingStatus:         SyncStatusNotSyncing,
 | 
			
		||||
		peerAnnounceMap:       map[string]*protobufs.CeremonyPeerListAnnounce{},
 | 
			
		||||
		peerMap:               map[string]*peerInfo{},
 | 
			
		||||
		uncooperativePeersMap: map[string]*peerInfo{},
 | 
			
		||||
		minimumPeersRequired:  minimumPeersRequired,
 | 
			
		||||
		frameProver:           frameProver,
 | 
			
		||||
		masterTimeReel:        masterTimeReel,
 | 
			
		||||
		dataTimeReel:          dataTimeReel,
 | 
			
		||||
		statsClient:           statsClient,
 | 
			
		||||
		currentReceivingSyncPeers: 0,
 | 
			
		||||
		lastFrameReceivedAt:       time.Time{},
 | 
			
		||||
		frameProverTrie:           &tries.RollingFrecencyCritbitTrie{},
 | 
			
		||||
		inclusionProver:           inclusionProver,
 | 
			
		||||
		syncingStatus:             SyncStatusNotSyncing,
 | 
			
		||||
		peerAnnounceMap:           map[string]*protobufs.CeremonyPeerListAnnounce{},
 | 
			
		||||
		peerMap:                   map[string]*peerInfo{},
 | 
			
		||||
		uncooperativePeersMap:     map[string]*peerInfo{},
 | 
			
		||||
		minimumPeersRequired:      minimumPeersRequired,
 | 
			
		||||
		frameProver:               frameProver,
 | 
			
		||||
		masterTimeReel:            masterTimeReel,
 | 
			
		||||
		dataTimeReel:              dataTimeReel,
 | 
			
		||||
		statsClient:               statsClient,
 | 
			
		||||
	}
 | 
			
		||||
 | 
			
		||||
	logger.Info("constructing consensus engine")
 | 
			
		||||
 | 
			
		||||
@ -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
 | 
			
		||||
 | 
			
		||||
 | 
			
		||||
@ -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}
 | 
			
		||||
}
 | 
			
		||||
 | 
			
		||||
@ -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")
 | 
			
		||||
}
 | 
			
		||||
 | 
			
		||||
		Loading…
	
		Reference in New Issue
	
	Block a user