loop/notifications
Slyghtning 8ae163c15d
notifications: deduplicate risk fanout
Risk accepted and rejected notifications had nearly identical parsing,
persistence, cache update, and subscriber fanout code. The duplication made it
easy for the two decision paths to drift.

Introduce a shared risk-decision handler that validates the swap hash, persists
the decision, updates the matching cache, clears the opposite cache, and fans
out only to the subscriber for that swap.

Keep risk-decision delivery best-effort for slow subscribers, while queued
delivery remains limited to notification types that must not be dropped. Fold
the queue tests through a common helper so both queued notification paths keep
the same behavior.
2026-06-01 10:46:52 +02:00
..
log.go multi: update lnd compile-time dependency to v0.19.0 2025-03-10 22:59:49 +01:00
manager.go notifications: deduplicate risk fanout 2026-06-01 10:46:52 +02:00
manager_test.go notifications: deduplicate risk fanout 2026-06-01 10:46:52 +02:00