diff options
| author | DanConwayDev <DanConwayDev@protonmail.com> | 2026-01-09 09:21:55 +0000 |
|---|---|---|
| committer | DanConwayDev <DanConwayDev@protonmail.com> | 2026-01-09 09:21:55 +0000 |
| commit | e1806540b5d905646b786e21a6060e4498e9aff1 (patch) | |
| tree | f9a9745484772351e5a21ee16600ab064a15bcd5 /docs/tutorials/README.md | |
| parent | 5eb736e1184e313efa65237bf1973dee21afb43f (diff) | |
feat(sync): validate negentropy event receipt and retry missing events
Add validation that all events requested by ID during negentropy sync
are actually received from the relay. When events are missing:
- Log detailed information (requested/received/missing counts and IDs)
- Create retry subscriptions for missing events (chunked by 300)
- Update batch to track only missing events in next round
- Only complete batch after all events received or retry fails
This handles relays that have limits on ID-based queries (e.g., max 150
events per query) by automatically retrying in smaller chunks.
Also excludes purgatory and rejected announcement events from negentropy
requests to avoid re-requesting events we know we can't/won't store.
Note: Current implementation lacks retry limit - infinite loop protection
needed (tracked as future work).
Diffstat (limited to 'docs/tutorials/README.md')
0 files changed, 0 insertions, 0 deletions