Add nostr nip-05 registration with lnd invoices #1

Merged
Asara merged 33 commits from nostr_lnd into main 2023-05-30 00:10:37 +00:00
Showing only changes of commit 5c078a90c8 - Show all commits

View file

@ -125,12 +125,12 @@ func AddNostrAddr(n NostrRequest) {
}
jsonUser, _ := json.Marshal(user)
r, err := redis.New("localhost:6379", "", redis.NostrDb)
redisCli, err := redis.New("localhost:6379", "", redis.NostrDb)
if err != nil {
fmt.Println("Failed to connect to redis")
}
nameKey := getRkey("verified", n.Name, n.Hostname)
err = r.Client.Set(nameKey, jsonUser, redis.NostrDb).Err()
err = redisCli.Client.Set(nameKey, jsonUser, redis.NostrDb).Err()
if err != nil {
fmt.Println("FAILED")
}