Closed nicolasburtey closed 4 years ago
You must pass total_mtokens
ok. that works. thanks!
actually another question. isn't that mtokens should be 1000x tokens?
I have back ExpectedEqualValuesForTokensAndMtokens
actually another question. isn't that mtokens should be 1000x tokens?
I have back
ExpectedEqualValuesForTokensAndMtokens
If there is an issue I would only pass one of the values, you do not need to pass both
ok
actually, if I have:
mtokens
(only), I get: 400,ExpectedTokensValueToProbeForRoute
tokens
(only), I get: missing total_msat
both: ExpectedEqualValuesForTokensAndMtokens
(I have done mtokens: tokens * 1000
)
Sorry, total_mtokens is separate, you must set that
But for mtokens vs tokens, only set one of those
So for tokens, set tokens=tokens and total_mtokens=mtokens
Ah you're right there is an issue here
I pushed a change to allow specifying mtokens only
You'll still want to specify total mtokens separately, this is for scenarios where the route is only one path of multiple, the total should be the sum of all, the mtokens is the individual path
I've upgraded to the last version. Still running into some issue. I'm setting both: mtokens
, total_mtokens
and payment
and I have this error:
err: [
503,
"UnexpectedErrorWhenPayingViaRoute",
{
"err": {
"code": 2,
"metadata": {
"_internal_repr": {},
"flags": 0
},
"details": "missing total_msat"
}
}
]
OK I will take a look
This is a new issue where total_mtokens
wasn't being passed along - can you try master and see if it is fixed now?
this works. thanks!
I'm calling ProbeForRoute with the following parameters:
and I get the following err:
on a lnd 0.11-beta.
If I don't give
payment
as an argument, then I don't have this error.After reading the lightning-rfc, It seems
payment
andtotal_msat
are related for mpp. but I guess total_msat should be set automatically when payment is passed as an argument?