Author: Thomas Steenholdt 2018-03-19 11:30:35
Published on: 2018-03-19T11:30:35+00:00
Thomas Steenholdt had asked for a high-level explanation of how fees are established, announced and ultimately claimed in a payment over Lightning Network. ZmnSCPxj replied that the details are contained in BOLT spec, but it is very detailed and contains the topic in multiple places. For example, Node gossip, the channel_update message in BOLT#7, provides information about the fee_base_msat and fee_proportional_millionths for each channel. The A may have obsolete information about fees, but in this case, payment routing will fail, but the channel_update will also be sent as part of the error message returned by payment routing failure. To know the amount of fees that need to be added to the payment to cover all fees, A computes it. D is only aware of how much C offers it. The fees are actually claimed when A offers B a value that is higher than what A instruct B to forward to C. The difference is the fee and since the highest value is at the source A, A is the one who ends up paying the entire fee.
Updated on: 2023-05-24T22:02:52.765385+00:00