Skip to content

fix: MockRelayPool live broadcast now respects subscription filters#90

Merged
ContextVM-org merged 1 commit into
ContextVM:mainfrom
harsh04044:fix/mock-relay-pool-subscription-filter
Jun 8, 2026
Merged

fix: MockRelayPool live broadcast now respects subscription filters#90
ContextVM-org merged 1 commit into
ContextVM:mainfrom
harsh04044:fix/mock-relay-pool-subscription-filter

Conversation

@harsh04044

Copy link
Copy Markdown

MockRelayPool was broadcasting every published event to all subscribers unconditionally. Real Nostr relays only deliver events matching a subscriber's registered filters - so the mock was wrong.

Fixed by making each subscriber's live delivery filter-gated. A pool with no registered subscription receives nothing from live publishes. A pool subscribed to p=self no longer receives events it published addressed to a peer.

@ContextVM-org ContextVM-org merged commit a0f9413 into ContextVM:main Jun 8, 2026
3 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants