upleb.uk

Public git repos — served from a NIP-34 GRASP relay at git.upleb.uk

summaryrefslogtreecommitdiff
path: root/src/nostr.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'src/nostr.cpp')
-rw-r--r--src/nostr.cpp11
1 files changed, 6 insertions, 5 deletions
diff --git a/src/nostr.cpp b/src/nostr.cpp
index 0c1b4b6..35fde43 100644
--- a/src/nostr.cpp
+++ b/src/nostr.cpp
@@ -1764,11 +1764,12 @@ void ThreadNostrSeed(void* parg)
1764 LogPrint("nostr", "Nostr: node pubkey = %s\n", key.PubKeyHex().c_str()); 1764 LogPrint("nostr", "Nostr: node pubkey = %s\n", key.PubKeyHex().c_str());
1765 LogPrint("nostr", "Nostr: node .btf address = %s\n", key.BtfAddress().c_str()); 1765 LogPrint("nostr", "Nostr: node .btf address = %s\n", key.BtfAddress().c_str());
1766 1766
1767 // The self-test below publishes a real descriptor, and PublishDescriptor now 1767 // The self-test below publishes a real descriptor. Rendezvous-only nodes
1768 // refuses to publish before ThreadBtfAccept has registered a rendezvous. Give 1768 // need ThreadBtfAccept to register first; Tor nodes can publish as soon as
1769 // registration a bounded head start so the test measures the publish/resolve 1769 // their signed onion endpoint exists, with rendezvous marked pending.
1770 // chain instead of losing the race against it. 1770 for (int i = 0; i < 60 && !fShutdown &&
1771 for (int i = 0; i < 60 && !fShutdown && BtfActiveRelay().empty(); i++) 1771 BtfActiveRelay().empty() &&
1772 BtfLocalOnionEndpoint().empty(); i++)
1772 Sleep(1000); 1773 Sleep(1000);
1773 1774
1774 // One-time self-test of the rendezvous: publish our descriptor to a relay, 1775 // One-time self-test of the rendezvous: publish our descriptor to a relay,