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:
authorBitflash <admin@bitflash.network>2026-08-13 16:07:04 -0300
committerBitflash <admin@bitflash.network>2026-08-13 16:07:04 -0300
commitea08342aba66400f588c6a03685a6f39927cb062 (patch)
tree3d7fa8c459fb3b493b878f68b85cb53b7c16659e /src/nostr.cpp
parent8e21e8ca0b8d50c29376bc2f0a89575baa477213 (diff)
parent5309170e567f4a8655b3b622e7b26b6d8b382942 (diff)
Merge pull request 'net: add onion-only btf dial mode' (#35) from managed-tor-two-node-smoke into main
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,