Skip to content
Closed
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
13 changes: 12 additions & 1 deletion orange-sdk/src/lightning_wallet.rs
Original file line number Diff line number Diff line change
Expand Up @@ -92,7 +92,18 @@ impl LightningWallet {
);
},
Network::Testnet4 => {},
Network::Signet => {},
// No public RGS server exists for arbitrary signet networks, and
// small signet deployments (an LSP + a mint + phones) often never
// reach any public graph at all — so with no gossip source the
// wallet can only pay route-hinted invoices; anything from a node
// with an announced channel fails with RouteNotFound before an
// HTLC is even dispatched. P2P gossip from the wallet's own peers
// (its LSP) teaches it exactly the local topology it needs, and
// signet graphs are small enough that sync cost is negligible.
// An explicitly configured rgs_url still takes precedence above.
Network::Signet => {
builder.set_gossip_source_p2p();
},
Network::Regtest => {
// We don't want to run an RGS server in tests so just enable p2p gossip
builder.set_gossip_source_p2p();
Expand Down