Comment by [deleted] on 02/01/2018 at 23:05 UTC*

10 upvotes, 3 direct replies (showing 3)

View submission: Lightning Network Megathread

A question - who or what maintains the routing tables for various hubs? Edit. Networking layer - if the channel is not direct between two peers, how does the transaction get routed.

Replies

Comment by tripledogdareya at 03/01/2018 at 03:00 UTC

2 upvotes, 1 direct replies

Current implementation uses source routing. All the nodes broadcast channel information and the sender is responsible for graphing the network and finding a suitable route.

Comment by markasoftware at 03/01/2018 at 05:44 UTC

2 upvotes, 0 direct replies

You connect to one or two nodes manually, maybe with a DNS seed or hardcoded nodes (this is how Bitcoin Core does discovery as well), then those nodes tell you about other nodes until you know about most of the network, including which nodes have channels with which. Then you route locally.

Comment by codedaway at 03/01/2018 at 00:35 UTC

1 upvotes, 1 direct replies

I'm not sure what this questions is, could you reword it? Maybe someone else can help explain what's being asked.