p2p: incremental sync with digests, inventory and fetch

Peers compare a short digest of revocations, listings and messages on
connect and transfer only what differs. Peers without digests are synced
the old way.

Co-Authored-By: Claude Sonnet 5.5 <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_01AeFqV96dVeBX94inzcgZKw
This commit is contained in:
2026-11-18 17:28:22 +01:00
co-authored by Claude Sonnet 5.5
parent e379065695
commit 11fd2a88c0
6 changed files with 705 additions and 17 deletions
+1
View File
@@ -117,6 +117,7 @@ type Node struct {
boot *bootstrapper
dht *dht.IpfsDHT
syncing map[peer.ID]bool
oldSync bool // tests: answer like a node from before digests existed
revTopic *pubsub.Topic
}