Skip to content

I think the total fee of each node was incorrectly calculated. #3

@guillaez

Description

@guillaez

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

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions