Post
Topic
Board Bitcoin Discussion
Re: [self-moderated] Is LN Bitcoin? franky1: About scaling, on-chain and off-chain
by
Rath_
on 19/01/2022, 17:17:10 UTC
yep before alice even sends bob an (incoming to bob) alice needs to do stuff, which requires lots of messages

Alice doesn't need to send any messages as she should be able to extract all the information she needs from her local network graph.

EG your "update_add_htlc forces commitment update. thinking the only messages are update_add_htlc (again facepalm)

Thank you for finally admitting that "update_add_htlc" enforces commitment update.

an incoming HTLC. how is that formed(what data is inside this incoming htlc).

Again, all the data she needs could be obtained from her local network graph.



As both of us are probably getting tired of the "contradiction game". I invite you to play the "quoting game".

I am quite sure that you know Andreas Antonopoulos and you must have read "Mastering Bitcoin" at some point. Let me introduce you to "Mastering The Lightning Network".

The gossip protocol:

The Lightning Network solves this problem by implementing a gossip protocol. Gossip protocols are typical for peer-to-peer (P2P) networks and allow nodes to share information with the whole network with just a few direct connections to peers. Lightning nodes open encrypted peer-to-peer connections to each other and share (gossip) information that they have received from other peers. As soon as a node wants to share some information, for example, about a newly created channel, it sends a message to all its peers. Upon receiving a message, a node decides if the received message was novel and, if so, forwards the information to its peers. In this way, if the peer-to-peer network is well connected, all new information that is necessary for the operation of the network will eventually be propagated to all other peers.

The construction of a channel graph is not a one-time event, but rather an ongoing activity. As a node bootstraps into the network it will start receiving "gossip," in the form of the three update messages. It will use these messages to immediately start building a validated channel graph.
The more information a node receives, the better its "map" of the Lightning Network becomes and the more effective it can be at pathfinding and payment delivery.

So, you actually don't need any channel peers to start syncing the graph which contradicts your view:

then the only network map ABCDE has is only of ABCDE. because they are peered to pass the parcel
because E is not connected to Z or M or T elsewhere. ABCDE wont know about all the other channels. it only knows about the ones peered to it
EG. if my network map is where ABCDE only have A and E with 1 channel and BCD with  2 channels [...]
a node only knows of the map of its peers, peers

You said that Alice has only B, C, D, E (completely ignoring that BC is a private channel) in her local map of the network.