-
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
Incorrect validation on keysend route hints #6143
Comments
Hm, that's definitely wrong on my side. Seems like this is the only case of a 2D array, which is treated a bit differently in the code generation tool. I will:
However I am going to be offline till end of month, hopefully that is not too late :-) |
Fixes ElementsProject#6143 Changelog-Fixed: clnrs: Fixed an issue converting routehints in keysend
Hi @Evanfeenstra, I pushed a preliminary fix as #6154. It converts the custom types correctly to the 2d array now. For cln-grpc the inverse conversion is not required but we may want it at some time in the future, hence why there are the |
thanks for working on it @cdecker ! |
Fixes #6143 Changelog-Fixed: clnrs: Fixed an issue converting routehints in keysend
Fixes ElementsProject#6143 Changelog-Fixed: clnrs: Fixed an issue converting routehints in keysend
Fixes ElementsProject#6143 Changelog-Fixed: clnrs: Fixed an issue converting routehints in keysend
Fixes ElementsProject#6143 Changelog-Fixed: clnrs: Fixed an issue converting routehints in keysend
Issue and Steps to Reproduce
The
param_routehint_array
function here https://github.com/ElementsProject/lightning/blob/master/common/json_param.c#L953 checks if the RoutehintList is an array (JSMN_ARRAY). However the RoutehintList is actually an object that has the array of hints inside ahints
field https://github.com/ElementsProject/lightning/blob/master/cln-grpc/proto/primitives.proto#L73. Theparam_routehint
function looks like it has the same problem.You can try it using a
cln-grpc
client, like in this example https://github.com/Evanfeenstra/cln-grpc-routehints-test/blob/master/src/cln.rs#L50. The exact error message is:The text was updated successfully, but these errors were encountered: