We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 4542282 commit 503bde2Copy full SHA for 503bde2
crates/nostr-sdk/src/relay/pool.rs
@@ -161,10 +161,10 @@ impl RelayPoolTask {
161
162
match msg {
163
RelayMessage::Event { event, .. } => {
164
- // Verifies if the event is valid
165
- if event.verify().is_ok() {
166
- // Adds only new events
167
- if this.add_event(event.id).await {
+ // Check if event was already seen
+ if this.add_event(event.id).await {
+ // Verifies if the event is valid
+ if event.verify().is_ok() {
168
let notification = RelayPoolNotification::Event(
169
relay_url,
170
event.as_ref().clone(),
0 commit comments