>> (p.1)
    Author Topic: Lightning - Question to understand atomic transactions over the network  (Read 302 times)
    Kogs (OP)
    Member
    **
    Offline Offline

    Activity: 86
    Merit: 26


    View Profile
    March 07, 2018, 02:35:24 PM
     #1


    Hi,

    I'm trying to deeply understand how the lightning network is working.

    I understand how a payment channel between two nodes works, but I did not find out yet, how a more complex multi hop transaction is working in terms of an atomic transaction.

    How does the network make sure, that all nodes are doing the transaction if everything is fine, or that no node is doing the transaction if any problem occurs (for example one of the selected nodes in the route is down).

    I understand the network like this.

    1) Sender is searching the best route through all nodes to reach the target.
    2) Sender is encrypting the selected route node by node (onion routing)
    3) Sender send coins to the first node using a payment channel between sender and first node
    4) The next node decrypts the follow up node and continue sending coins to the next node over the next payment channel
    5) continue with 4 until the target node is reached.

    In my understanding, whenever I send something over the payment channel, this transaction is completed and not reversible (this is maybe the point where I'm wrong).
    So, when I have 10 nodes in my selected route, and node 5 in my list is down. How does the network make sure, that the 4 nodes before are doing a rollback to give back the coins to the sender, so the sender can try a different route.

    An explanation about this missing link I have would be great.

    Thank you in advanced.
Page 1
Viewing Page: 1