diff options
| author | DanConwayDev <DanConwayDev@protonmail.com> | 2026-01-09 08:35:12 +0000 |
|---|---|---|
| committer | DanConwayDev <DanConwayDev@protonmail.com> | 2026-01-09 08:35:12 +0000 |
| commit | 5eb736e1184e313efa65237bf1973dee21afb43f (patch) | |
| tree | 3884ab1a806c0b5f3335b72af7648adc1c011181 /docs/tutorials | |
| parent | c4142e99c2f21f0ce7ec2618a0bb1fd39c72ce07 (diff) | |
feat(sync): track and exclude rejected announcement events
Implement RejectedEventsIndex to prevent repeatedly fetching and
processing announcement events (kinds 30617/30618) that have been
rejected by the write policy.
Changes:
- Add RejectedEventsIndex to track rejected announcement EventIds
- Record rejections in process_event_static when announcements fail
write policy validation
- Exclude rejected events from negentropy sync (along with purgatory)
- Skip rejected events early in REQ+EOSE processing
- Add 2 tests verifying tracking and exclusion logic
Benefits:
- Reduced network traffic (no re-fetching of known-bad events)
- Lower CPU usage (no repeated validation)
- Faster sync (smaller negentropy diffs)
- Better observability (trace logging when skipping)
Scope limited to announcements as they are the primary source of
repeated rejection cycles during Layer 1 sync.
Closes: Reduces wasted bandwidth from continually fetching rejected events
Diffstat (limited to 'docs/tutorials')
0 files changed, 0 insertions, 0 deletions