nip60: make client better, fixes to receive flow, wallet helper methods.

This commit is contained in:
fiatjaf
2025-01-27 22:11:45 -03:00
parent c6747cdf44
commit 9c4c6529c9
5 changed files with 130 additions and 231 deletions
+2 -2
View File
@@ -116,11 +116,11 @@ func TestWalletRoundtrip(t *testing.T) {
for _, allEvents := range [][]nostr.Event{allEvents, reversedAllEvents} {
// create channel and feed events into it
eventChan := make(chan *nostr.Event)
eventChan := make(chan nostr.RelayEvent)
done := make(chan struct{})
go func() {
for _, evt := range allEvents {
eventChan <- &evt
eventChan <- nostr.RelayEvent{Event: &evt}
}
close(eventChan)
done <- struct{}{}