-
Notifications
You must be signed in to change notification settings - Fork 7
Open
Description
Hi! First of all, thank you for the wonderful work! This is the monumental research work in Lightning Network.
However, from the below code, the total fee of each node was incorrectly calculated I think.
routers[n2] = G[n1][n2][weight] |
Each variable in the above code means:
n1
: A node that forwards the payment
n2
: A node that receives the forwarded payment
weight
: Fee n1 takes for forwarding the payment
routers
: A dictionary that maps every node to the fee it took
According to the LN routing mechanism, the forwarding node takes the fee.
So, n1
should take the fee(weight
), but in your code, n2
is taking the fee.
Am I missing something?
Metadata
Metadata
Assignees
Labels
No labels