Accepting a deletion event that attempts to delete someone else's eve… #13
No reviewers
Labels
No labels
bug
documentation
duplicate
enhancement
good first issue
help wanted
invalid
question
wontfix
No milestone
No project
No assignees
1 participant
Notifications
Due date
No due date set.
Dependencies
No dependencies set.
Reference
nostr/relay-tester!13
Loading…
Add table
Add a link
Reference in a new issue
No description provided.
Delete branch "master"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
…nt is not necessarily a failure. Update the test to verify the important property, which is that the event is not actually deleted.
Hi! In strfry I'm adding support for deletion of PREs using a-tag references, and I thought I'd use
relay-testerto double-check the implementation.All good, except I noticed strfry is failing 1 test, the "Accepted deletion of someone else's event".
IMO the test is too strict. The test posts an event from user 1, and then has user 2 attempt to delete this using a kind 5 e-tag. It verifies the relay rejects this event. However, strfry does not reject this event, even though it theoretically could. It is careful to ensure that the event is not actually deleted though, of course.
In the general case, a relay can't know that a referenced event is from another user, since it may not yet have seen that event. So, it is not sufficient to do the check at event submission time, and it must be done separately (when the referenced event is eventually seen for example). For that reason, I do not believe an implementation should be required to reject an event, since this is a redundant check.
Thanks!
I agree with you. The test is too strict. Just ignore it for now since you know better. I think that advice applies to other tests as well. I'll update when I have the chance.
I didn't notice this was a PR. I wrote the code and pushed it. Similar to yours.
Sweet thanks!
Pull request closed