What are you testing, specifically?

Reply to this note

Please Login to reply.

Discussion

When posting an event and getting back a success, new code is recording that the event is on that relay. So the 'seen on' information visible by hovering over the eye will include all the relays it successfully posted to. Previously it was only getting that data if the event came in via a subscription.

There was a race condition between writing the event and writing the event_relay (seen on) data that caused a FOREIGN KEY failure. The way the code is structured I cannot easily fix it, so I instead set a PRAGMA to disable foreign key checks for this, in case it saves the event_relay record before it saves the event record.

Took a few tries to get it right.