-
Notifications
You must be signed in to change notification settings - Fork 9
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
Max flow changes with the value sent #32
Comments
Exactly, and for several rounds, trying to send a bit less than the previously reported maxFlow, I get an even lower maxFlow which makes my requested amount not valid. Here there are the requests attempted:
Response:
Attempt to send a lower amount:
The last max flow shows that I cannot make the transfer I want, and again for a lower value:
Between and after each requests, the response using the first big big amount is the same. |
The flow computation has there input parameters:
With these, the process is as follows:
This max flow is the one printed on stdout.
In all of the above, some values are only roughly right because intermediate nodes are introduced in the graph which only allows to compute approximate number of transfers and distances. The maxFlowValue returned via the json interface is the final transfer amount, not the theoretical max flow. |
I performed some tests running the server in local following the instructions in the README. branches: main, dev
Q: 1000000000000000000000000000000000 Q: 1280116562130304744004 Q: 1280000000000000000000 branch: feature/server_only
Q: 1000000000000000000000000000000000 Q: 6556106439487993740776 branch: feature/server_only
Q: 1000000000000000000000000000000000 Q: 6556106439487993740776 Production
Q: 1000000000000000000000000000000000 Q: 1147684776180813048132 Q: 1147000000000000000000 conclusions:
|
Hi! Yes, that looks like differences in the underlying data while the rest looks pretty consistent. Will need to check the data. |
Describe the bug
To calculate the max flow we try to send a big amount e.g. 1000000000000000000000000000000000, this will return a max value of 20k, but when actually trying to send this amount the pathfinder recalculates the maxflow and it returns a lower value, making the transaction imposible with that amount and having to use a lower value
To Reproduce
Query
Response
When trying to send the maxflow
Query
Response
As it can be seen the maxflow calculated is lower than the previous one
Expected behavior
if the max value is 20k, when trying to send that amount we should be able to send up to that amount without this having to be recalculated (or yes but returning the real max flow)
The text was updated successfully, but these errors were encountered: