- 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. |
||
|---|---|---|
| .. | ||
| __init__.py | ||
| client_connection.py | ||
| client_manager.py | ||
| event.py | ||
| event_validator.py | ||
| filter.py | ||
| relay.py | ||