Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

probabilities in UncertaintyGraph #25

Open
sebulino opened this issue May 29, 2022 · 0 comments
Open

probabilities in UncertaintyGraph #25

sebulino opened this issue May 29, 2022 · 0 comments

Comments

@sebulino
Copy link
Contributor

When and how do we handle the amounts the best way?

This is an extract from #24 (comment) and #24 (comment)

When doing a try loop on a (partial) payments, the amount is allotted to the path and in the UncertaintyGraph this is considered for the calculation of the success probabilities.

while internally I increase the inflight counter I am actually in the planning phase and to compute the probabilities of planned paths I need to take into account that I already plan to allocate something sats to an edge (without knowing if that will work yet) So maybe we just need to move over the logic from the Enum to the state of a channel where we also have planned sats before we go and send onions and switch those to inflight sats. in this way I would note have to remove them before testing onions. does that make any sense? I am actually not sure myself if this would be any good.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant