upleb.uk

Public git repos — served from a NIP-34 GRASP relay at git.upleb.uk

summaryrefslogtreecommitdiff
path: root/tests/proactive_sync_resilience.rs
diff options
context:
space:
mode:
authorDanConwayDev <DanConwayDev@protonmail.com>2026-04-10 18:20:23 +0000
committerDanConwayDev <DanConwayDev@protonmail.com>2026-04-10 18:20:23 +0000
commit2161e3c0a8169a85111cd6dc01ffe2b0fed1493f (patch)
tree92684ae1521ab470ef0d9a59b2bb0530c8ed5367 /tests/proactive_sync_resilience.rs
parentdfd20a39a7ddaea07103cac45d4d79bc7e6ce0d7 (diff)
fix: purgatory replacement announcements leaked into DB without git data
When a replacement 30617 announcement arrived for an entry already in purgatory (e.g. the same event fetched from a second relay during sync, or a user re-submitting a slightly updated announcement), the policy returned Accept instead of AcceptPurgatory. This caused the event to be saved to the database immediately, bypassing the purgatory gate, without the corresponding git data or state events ever arriving. Fix: return AcceptPurgatory when replacing a purgatory entry so the updated event stays in purgatory until git data arrives. The purgatory entry is still updated with the newer event via replace_purgatory_announcement before the return.
Diffstat (limited to 'tests/proactive_sync_resilience.rs')
0 files changed, 0 insertions, 0 deletions