-
Notifications
You must be signed in to change notification settings - Fork 913
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
getroutes
: amounts and delays are wrong
#7550
Comments
using cln-rpc from master + #7549 |
looking at the |
Another test with 4 nodes in a line graph:
I believe the tests and code are wrong for
|
getroutes
: amounts with wrong feegetroutes
: amounts and delays are wrong
OK, so getroutes() is different than getroute(). I should document this properly. It's optimized towards onion creation, i.e. these are what you would put in the intermediary onions. So, it's the path to the destination, not including the destination. This will work better with |
I'm trying the new
getroutes
@rustyrussell and i encountered this:regtest l1->l2->l3
with auto layers applied. Notice how the second
Amount
in thepath
is notAmount { msat: 100000000 }
butAmount { msat: 100001001 }
instead. So the l2 node does not get paid and errors rightfully with WIRE_FEE_INSUFFICIENT.The text was updated successfully, but these errors were encountered: