What is Nostr?
fiatjaf /
npub180c…h6w6
2025-01-26 02:06:52
in reply to nevent1q…9cz3

fiatjaf on Nostr: Oh, now I see what you mean. I don't think that compact stuff is relevant here. The ...

Oh, now I see what you mean. I don't think that compact stuff is relevant here. The thing is that both on Badger and LMDB whenever we got a replaceable event stored twice (apparently because of race conditions) that would break the indexes in some way I forgot, such that it became impossible to delete the older version forever because it would be unreachable. The only way to fix this is to do a full rescan of the database and rebuild all the indexes, which is what LMDB does in its latest migration (well, all the other migrations I deleted because this big rescan makes them unnecessary).

Badger needs that same thing, but I forgot to do it. In any case you can do it manually by copying then nuking the database and then reimporting the events from the old database to the new empty one. I should still write the reindexing migration though.
Author Public Key
npub180cvv07tjdrrgpa0j7j7tmnyl2yr6yr7l8j4s3evf6u64th6gkwsyjh6w6