limit differences to 5 bytes - fixed

This commit is contained in:
crn4
2025-11-13 17:48:40 +01:00
parent c0698c8153
commit a45ab85178

View File

@@ -511,7 +511,7 @@ func (c *Controller) compareAndSaveNetworkMaps(ctx context.Context, accountId, p
return
}
if len(expBytes) == len(legacyBytes) || math.Abs(float64(len(expBytes)-len(legacyBytes))) > 5 {
if len(expBytes) == len(legacyBytes) || math.Abs(float64(len(expBytes)-len(legacyBytes))) < 5 {
log.WithContext(ctx).Debugf("network maps are equal for peer %s in account %s (size: %d bytes)", peerId, accountId, len(expBytes))
return
}