This repository was archived by the owner on Apr 26, 2024. It is now read-only.

Description
This affects v0.99.5 and was introduced in #5146, though that was fixing otherwise broken behaviour.
Broadly, when we receive an event that we soft-fail we do not update the forward extremities with the new event nor remove events that it references. This ensures that the server does not point to the soft failed event when building new events.
However, if another server sends an event that references the soft failed event (typically the original server) that is not soft-failed, then we update the forward extremities table with the new event but do not remove the original extremity referenced by the soft failed event.
The fix to this is to correctly delete the original extremity when the new non-soft-failed event is received.