Skip to content

Offer mainnet Lightning once it dials over Tor - #151

Merged
hoffmabc merged 2 commits into
mainfrom
feat/ln-mainnet-over-tor
Nov 17, 2026
Merged

hoffmabc merged 2 commits into
mainfrom
feat/ln-mainnet-over-tor

Conversation

@hoffmabc

Copy link
Copy Markdown
Member

Summary

The node already sends public Lightning peers, Esplora, and gossip through --proxy or built-in Tor, and refuses mainnet Lightning without that path. The shop still hid Lightning, and the pay and withdraw buttons, whenever the network was bitcoin. It now follows the node's blocked flag. The Lightning doc and the status notes for moderator identities and store discovery match the code already on main.

Test plan

  • node --experimental-strip-types --test src/lightning.test.ts
  • A mainnet node with --tor and --lsp reports network bitcoin and no blocked string, and the shop offers Lightning
  • A mainnet node without Tor still shows the node's refusal

The node already refuses public Lightning peers unless --proxy or built-in Tor carries them. The shop was still hiding Lightning whenever the network was bitcoin, and the docs still said that path did not exist.
Those buttons were hidden for any bitcoin network, including a node that already dials peers over Tor.
@hoffmabc
hoffmabc merged commit 295611e into main Nov 17, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant