diff options
| author | Nsable-sh <nsable-sh@noreply.git.bitflash.network> | 2026-08-13 15:24:10 -0300 |
|---|---|---|
| committer | Nsable-sh <nsable-sh@noreply.git.bitflash.network> | 2026-08-13 15:58:42 -0300 |
| commit | 5309170e567f4a8655b3b622e7b26b6d8b382942 (patch) | |
| tree | 3d7fa8c459fb3b493b878f68b85cb53b7c16659e /src/nostr.cpp | |
| parent | 8e21e8ca0b8d50c29376bc2f0a89575baa477213 (diff) | |
net: add onion-only btf dial mode
Diffstat (limited to 'src/nostr.cpp')
| -rw-r--r-- | src/nostr.cpp | 11 |
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, |