I want to grab the latest info for users that I'm testing against and I want to make sure that their kind0's appear in my relay (since I'm only testing against the single relay for now)

My solution has been to add the relay for my test users and re-save the info, but that only works for pubkeys I control.

Reply to this note

Please Login to reply.

Discussion

I would probably write a test program and run it against the server. E.g.:

- Open Socket 1

- Send filter for pubkey on s1

- Open Socket 2

- Send kind0 event on s2

- Verify that it arrived on s1.

(Extend with other test cases, e.g. open another socket to ensure, event is sent with "historical" events before EOS.)

In this case, kind0s are not different from other relays though.

To make sure that other users kind0 event are handled correctly is quite hard, since you cannot even be sure, they sent them to your relay, even if they sent other events to it. But some form of ongoing analysis might be possible. E.g. monitor some users via your relay and some other relays (wellorder or so) and compare published events.