What is Nostr?
K
npub1h49…9kay
2025-02-19 12:35:34
in reply to nevent1q…js6t

K on Nostr: jellyfish uses immortal as it's software. we have 2 layer of protection for this ...

jellyfish uses immortal as it's software.

we have 2 layer of protection for this issue which help us to stop double processing of an event, stop rewriting of deleted and vanished events.

1. a redis bloom filter which keep track of all events seen by relay. so if someone send an already processed event, we will reject immediately. so, a deleted event is a event that were processed in past!

2. we don't delete a record on mongo db, we update it and remove all fields of it except its id. so it's basically just a nonsense hash. when someone try to write it again, (if we lost redis data for any reason.) we don't write duplicate ids on database and write operation will fail.

you can take a look at code:

https://github.com/dezh-tech/immortal
Author Public Key
npub1h49w8en79xty6j2pwgnpm3znjhyf767jua6xgt3kvyn3w80ms86s2z9kay