mirror of
				https://source.quilibrium.com/quilibrium/ceremonyclient.git
				synced 2025-10-31 18:27:26 +00:00 
			
		
		
		
	fix: resolve bad peer info spam
This commit is contained in:
		
							parent
							
								
									76089a1157
								
							
						
					
					
						commit
						bde6a921ca
					
				| @ -232,6 +232,24 @@ func (e *CeremonyDataClockConsensusEngine) handleCeremonyPeerListAnnounce( | ||||
| 		} | ||||
| 
 | ||||
| 		e.pubSub.SetPeerScore(p.PeerId, 10) | ||||
| 		existing, ok := e.peerMap[string(p.PeerId)] | ||||
| 		if ok { | ||||
| 			if existing.signature != nil && p.Signature == nil { | ||||
| 				continue | ||||
| 			} | ||||
| 
 | ||||
| 			if existing.publicKey != nil && p.PublicKey == nil { | ||||
| 				continue | ||||
| 			} | ||||
| 
 | ||||
| 			if existing.version != nil && p.Version == nil { | ||||
| 				continue | ||||
| 			} | ||||
| 
 | ||||
| 			if existing.timestamp > p.Timestamp { | ||||
| 				continue | ||||
| 			} | ||||
| 		} | ||||
| 
 | ||||
| 		e.peerMap[string(p.PeerId)] = &peerInfo{ | ||||
| 			peerId:    p.PeerId, | ||||
|  | ||||
		Loading…
	
		Reference in New Issue
	
	Block a user
	 Cassandra Heart
						Cassandra Heart