Did I fix that bug? I don't even know.

All I know is that you should all be using the ReplaceEvent hook.

Reply to this note

Please Login to reply.

Discussion

Yeah, you did 🤣. The outdated replaceable and addressable events (including the infamous outdated 10002 lists that have been bothering me forever) are now being properly deleted. I no longer need to run my crappy maintenance scripts to delete outdated events! If it wasn't intended then I think this was a "happy side effect" of your changes to fix pathological duplicates. Likely the changes to the Publish method in this commit, but I'm not 100% sure: https://github.com/fiatjaf/eventstore/commit/295a7510337c39e79d5c8154d22d1fb86438098b.

And you’re totally right. I'm already working on adding ReplaceEvent handlers to Haven. I managed to break my own dev branch this weekend while updating Khatru and EventStore to the latest version (likely due to conflicts with other libraries). But as soon as I have a stable version, I'll submit a PR to utxo's repo upstream.

OK, well I thought there was a chance I had fixed it but wasn't 100% sure.

Thank you for monitoring all of this and ensuring things continue to mostly work.