Re-check cached screening results against the local OFAC list #25

Merged
Taskuler-bot merged 1 commit from fix/recheck-ofac-on-cache-hit into main 2026-11-30 02:23:25 +00:00
Member

Follow-up to #24. Merge after #14–#24, in order. Branch = #24 (ca462ba) + one commit.

  • On a screening cache hit, the wallet is checked again against the local OFAC list. This makes no provider call.
  • If that check isn't a pass, the cached result is discarded and the wallet is screened again in full. A listed wallet is then blocked (sanctioned), and an unavailable list fails closed (unavailable, never cached).
  • If it still passes, the cached result is reused as before. The cache is still keyed by wallet (any letter case), exact IP and country header.
  • No user-facing copy changes, no new settings, and no change to the order of checks (OFAC first) or to the location/VPN checks.

Tests: new tests cover a cached pass followed by a new OFAC listing (now blocked), an unavailable list on a cache hit (fails closed, nothing cached), and reuse with the same keys. The new tests fail without the change. This branch passes 200/200 tests, both tsc checks and the testnet build. Tests make no network calls.

Follow-up to #24. Merge **after #14–#24**, in order. Branch = #24 (`ca462ba`) + one commit. - On a screening cache hit, the wallet is checked again against the local OFAC list. This makes no provider call. - If that check isn't a pass, the cached result is discarded and the wallet is screened again in full. A listed wallet is then blocked (`sanctioned`), and an unavailable list fails closed (`unavailable`, never cached). - If it still passes, the cached result is reused as before. The cache is still keyed by wallet (any letter case), exact IP and country header. - No user-facing copy changes, no new settings, and no change to the order of checks (OFAC first) or to the location/VPN checks. **Tests:** new tests cover a cached pass followed by a new OFAC listing (now blocked), an unavailable list on a cache hit (fails closed, nothing cached), and reuse with the same keys. The new tests fail without the change. This branch passes 200/200 tests, both `tsc` checks and the testnet build. Tests make no network calls.
On a cache hit, the wallet is checked again against the local OFAC list. If that isn't a pass, the cached result
is discarded and the wallet is screened again in full, which blocks or fails closed. Adds tests.
george approved these changes 2026-11-30 01:53:36 +00:00
Dismissed
george approved these changes 2026-11-30 01:57:08 +00:00
Taskuler-bot changed target branch from fix/drop-chainalysis-testnet to main 2026-11-30 02:23:20 +00:00
Sign in to join this conversation.
No reviewers
No labels
No milestone
No project
No assignees
2 participants
Notifications
Due date
The due date is invalid or out of range. Please use the format "yyyy-mm-dd".

No due date set.

Dependencies

No dependencies set.

Reference
taskuler/web!25
No description provided.