[client] Enhance SyncRequest with NetworkMap serial tracking

- Added `networkMapSerial` field to `SyncRequest` for tracking the last known network map serial number.
- Updated `GrpcClient` to store and utilize the last network map serial during sync operations, optimizing synchronization processes.
- Improved handling of system info updates to ensure accurate metadata is sent with sync requests.
This commit is contained in:
Hakan Sariman
2025-09-25 19:28:35 +07:00
parent 644ed4b934
commit 4b2cd97d5f
3 changed files with 552 additions and 506 deletions

File diff suppressed because it is too large Load Diff

View File

@@ -63,6 +63,8 @@ message EncryptedMessage {
message SyncRequest {
// Meta data of the peer
PeerSystemMeta meta = 1;
// Optional: last known NetworkMap serial number on the client
uint64 networkMapSerial = 2;
}
// SyncResponse represents a state that should be applied to the local peer (e.g. Netbird servers config as well as local peer and remote peers configs)