Describe the bug
There appears to be a ghosting affect when mixing NIP-40 and NIP-33. I spent a few hours trying to track down what was going on, and am fairly certain I have eliminated human error on my side.
To Reproduce
Pick a kind in the parameterized replaceable event range
Publish an event.
Subscribe with filters for that kind. Observe expected behaviors
Add an expiration tag with a UNIX timestamp sometime in the future.
Publish the event.
Observe incorrect behaviors (event is not stored)
Remove the expiration tag.
Publish the event again.
When subscribing, the event will not be returned, suggesting it was not stored.
Subscribing with filters for that kind before the event is published will show that the event is returned once by the subscription but if you resubscribe that same event will not be returned; similar to the behavior of an ephemeral kind.
Expected behaviorexpiration tag on an event kind has absolutely no effect on future events of that kind.
Screenshots
System (please complete the following information):
nostream@1.22.6 (issue began in a previous release)
ubuntu@22.04
Logs
There was nothing in logs to suggest anything was wrong.
Additional context
Was experimenting and updating an implementation on a private relay to include NIP-40 expirations.
Before adding the expiration field, the issue did not exist and events were publishing without issue for ~2.5 months
Nothing changed in event publishing logic (other than removing a tag and adding the expiration tag) nor in the client logic.
I isolated the test case and was able to reproduce the behavior.
Describe the bug There appears to be a ghosting affect when mixing NIP-40 and NIP-33. I spent a few hours trying to track down what was going on, and am fairly certain I have eliminated human error on my side.
To Reproduce
expiration
tag with a UNIX timestamp sometime in the future.Expected behavior
expiration
tag on an event kind has absolutely no effect on future events of that kind.Screenshots![Screen Shot 2023-03-05 at 12 26 20 AM](https://user-images.githubusercontent.com/299465/222933218-a16479d3-906f-4410-92e2-a902755218da.png)
System (please complete the following information):
nostream@1.22.6
(issue began in a previous release)ubuntu@22.04
Logs There was nothing in logs to suggest anything was wrong.
Additional context
expiration
tag) nor in the client logic.