Add NetworkMapSerial to SyncAndMarkPeer for optimized syncing

This commit is contained in:
Hakan Sariman
2025-10-06 16:16:10 +07:00
parent fc141cf3a3
commit 2f40ccc713
7 changed files with 61 additions and 28 deletions
+2
View File
@@ -12,6 +12,8 @@ type PeerSync struct {
WireGuardPubKey string
// Meta is the system information passed by peer, must be always present
Meta nbpeer.PeerSystemMeta
// NetworkMapSerial is the last known network map serial from the client
NetworkMapSerial uint64
// UpdateAccountPeers indicate updating account peers,
// which occurs when the peer's metadata is updated
UpdateAccountPeers bool