nostrrelay/relay
padreug 8d6f482de0
Some checks failed
CI / lint (push) Waiting to run
CI / tests (push) Blocked by required conditions
/ release (push) Has been cancelled
/ pullrequest (push) Has been cancelled
Fix critical filter logic bugs preventing event propagation in Nostr relay
- Fix inverted logic in _can_add_filter() method that was preventing new
subscription filters from being added
  - Fix REQ message handling to properly clear existing filters before
adding new ones
  - Fix inverted condition check when validating filter addition
capacity
  - Add debug logging to track filter matching and broadcast failures

  These bugs were causing customer order events (NIP-15) to be received
by the relay but not
  forwarded to nostrclient/nostrmarket, requiring server restarts or
manual refresh to process orders.
  The fix ensures proper event propagation: Customer → Relay →
nostrclient → nostrmarket → Invoice.

  Root cause: The _can_add_filter() method returned true when filters >=
max instead of when
  filters < max, and the validation check used the wrong conditional,
effectively blocking all
  new filter subscriptions after initial connection.
2026-01-06 23:05:22 +01:00
..
__init__.py refactor: extract client_connection 2023-02-17 14:44:39 +02:00
client_connection.py Fix critical filter logic bugs preventing event propagation in Nostr relay 2026-01-06 23:05:22 +01:00
client_manager.py chore: add uv, linting, fixes (#39) 2025-10-30 10:43:27 +01:00
event.py refactor: get rid of secp lib (#40) 2025-11-04 10:30:43 +02:00
event_validator.py chore: add uv, linting, fixes (#39) 2025-10-30 10:43:27 +01:00
filter.py chore: add uv, linting, fixes (#39) 2025-10-30 10:43:27 +01:00
relay.py chore: add uv, linting, fixes (#39) 2025-10-30 10:43:27 +01:00