diff options
| author | DanConwayDev <DanConwayDev@protonmail.com> | 2026-01-10 01:34:11 +0000 |
|---|---|---|
| committer | DanConwayDev <DanConwayDev@protonmail.com> | 2026-01-10 01:34:11 +0000 |
| commit | 3f19ab476799071d11e5f61074b60e31511f68a2 (patch) | |
| tree | 265a7f048b75d5b12f37d58e05f1db8cb35152d8 /docs/reference | |
| parent | c9b3b3bd8a04de139bcb0d0b83bf819c367ee8c8 (diff) | |
fix: implement negentropy fallback to REQ+EOSE when negentropy fails
When negentropy sync fails (one or more filters fail during diff), the
code previously left a pending batch and returned early, preventing any
sync from happening. This caused the "No sync targets found" issue.
Changes:
- Track negentropy success with a boolean flag
- On negentropy failure: clean up pending batch and fall through to REQ+EOSE
- Log the fallback at info level for visibility
- Restructure control flow so REQ+EOSE path executes after negentropy failure
This ensures sync always completes using traditional REQ+EOSE when
NIP-77 negentropy is unavailable or fails.
Diffstat (limited to 'docs/reference')
0 files changed, 0 insertions, 0 deletions