-
Notifications
You must be signed in to change notification settings - Fork 377
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
Look Into using -log((channel capacity + 1 - HTLC amount ) / (channel capacity +1)) for scoring #1172
Comments
I think there has been a miss understanding. While Let me recap to resolve the misunderstanding:
Now the goal is to find the most probable path. However the problem of finding a path where the product of the edge weights is to be maximized is a strange problem. However because the log function is a group homomorphism from the multiplicative group of real numbers to the the additive group we can reformulate the problem as a problem to find the shortest path where the edge have the weight Thus the path minimizing That all being said let's look at the misunderstanding. The proper scoring function Thus what I suggested is that you could linearize
Thus the suggestion was that one can use the linearized version However using the linearized score has sever disadvantages too as it tends to saturate channels (similarly aas the current fee function tends to saturate channel) This becomes only relevant when one does a flow computation and doesn't use ad-hoc splitting before generating candidate paths. However flow computation is suggested as it will boost the reliability similarly to going to the probabilistic model. Also using the linearized version is tricky when you want to use the conditional probabilities assuming you already have reduced uncertaintay as explained in detail in your other issue at #1170 (comment) where I provide a more extensive elaboration on the rest of the theory and how to utilize knowledge from prior attempts |
btw one side note: the c-lightning team did actually try |
Ah, thanks for clearing that up, indeed, I didn't dig into the full paper and the comment on 1170 is rather opaque. Note that your above comment has a -1 in the numerator vs the c-lightning implementation uses a +1. |
Sorry for that. I actually sat down and took the time to summarize the relevant parts of the two papers for your given setting as the papers are even more opaque / abstract. There Ist a tl;dr with concrete todos in the summary that I provided to the c-lightning issue at: ElementsProject/lightning#4920 but I thought you wanted to also see the reasoning behind the suggested solution.
That is a typo here as it was late when I replied to you! |
Our |
Rene suggests it at #1166 (comment) noting that his research seems to indicate channel failure probability is strongly correlated with the above log. We will want to do benchmarks here to show its not materially slower.
The text was updated successfully, but these errors were encountered: