-
Notifications
You must be signed in to change notification settings - Fork 502
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
Pathfinding bug #324
Comments
Can that be prioritized in some way? Can't stress enough how important that is, double digit percent of all path payments in my setup can't be completed because of that bug |
This was probably made obsolete by the combination of the addition of liabilities and rounding fixes in path payment |
It was definitely still the case after rounding fixes. But I haven't done any testing after protocol v10 kicked in. I'll post here if I can find anything within 48 hrs, otherwise feel free to close the issue. Looks much better at the moment from the first glance. |
I also couldn't find anything obvious, but I'll add more tests to |
I finally had more time to debug #324 (comment) looks like a rounding issue fixed in V10. Horizon release with these changes was released in September so after your comment. There are big improvements possible with very little dev time needed in the current algorithm:
I hope to submit a PR with the changes tomorrow. |
Thanks, awesome. how can I find specific path A -> ... -> B if I can't see all options? There is a need for a way to specify outgoing currency then or pagination mechanism (complicated). I have this workaround for a long time, where I use special 30 accounts with 1 trustline, just to estimate paths and force user to choose outgoing asset beforehand. I was thinking I can get rid of it, because now it returns 1 path per asset, which is better than before, but I guess workaround stays, as I won't be able to list all paths. |
PR ready: #719 |
New path finding algorithm (#719) has been deployed to https://horizon-dev-pubnet.stellar.org/ (you can test it using Laboratory too!). Please check it out and let me know if it's better. @s-a-y if you could switch to it temporarily in your app and check if the returned paths are better I would be grateful. |
Thanks, I'll give it a try |
It's been a week. Has anyone checked the new results in path finding endpoint? |
Just checking in @s-a-y, is this still a major pain point for you? |
@tomquisel I believe this bug is resolved, haven't seen it in a while. https://stellar.expert/explorer/public/account/GBR3RS2Z277FER476OFHFXQJRKYSQX4Z7XNWO65AN3QPRUANUASANG3L |
That's great to hear! I'll close this issue. Feel free to add issues describing what you'd like to see for pagination and specifying sending currency, and we'll look into them. |
I believe there is a bug in horizon's pathfinding mechanism.
I was playing with different paths, trying to find if there are arbitrage opportunities within stellar network, for example BTC -> XLM -> EUR -> BTC would give me >1.
Strangely, using paths endpoint I came across the path 0.0085936 BTC -> XLM -> 0.01 BTC, which doesn't make any sense, as there can't be negative spread in BTC <-> XLM trading:
paths request
Then I tried to execute such path payment, result is quite predictable
With that in mind I have also many cases, when path payments fail for PapayaBot users with
op_over_source_max
even when I add 0.5% on top of sending amount. Especially for small amounts, for example you can't make path payment BTC -> 1 XLM, it always failsPlease check
The text was updated successfully, but these errors were encountered: