-
Notifications
You must be signed in to change notification settings - Fork 912
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
offers + bolt12: json_to_u32 could not parse \"3000msat\" #5850
Comments
Ok this appears to be one of those config quirks. Despite L1
it should still set the command line option |
Setting command line option
But parsing the |
Indeed, our tests turn off deprecated apis (as does the contrib/startup_regtest.sh script!) so we didn't find this! |
In this case, "fee_base_msat" from `listincoming` has `msat` appended. Fixes: ElementsProject#5850 Signed-off-by: Rusty Russell <rusty@rustcorp.com.au>
In this case, "fee_base_msat" from `listincoming` has `msat` appended. Fixes: ElementsProject#5850 Signed-off-by: Rusty Russell <rusty@rustcorp.com.au>
In this case, "fee_base_msat" from `listincoming` has `msat` appended. Fixes: ElementsProject#5850 Signed-off-by: Rusty Russell <rusty@rustcorp.com.au>
In this case, "fee_base_msat" from `listincoming` has `msat` appended. Fixes: ElementsProject#5850 Signed-off-by: Rusty Russell <rusty@rustcorp.com.au>
In this case, "fee_base_msat" from `listincoming` has `msat` appended. Fixes: ElementsProject#5850 Signed-off-by: Rusty Russell <rusty@rustcorp.com.au>
On experimental build of latest master 3ae58c4 (L1, see
listconfigs
below), trying tofetchinvoice
andpay
a bolt12 from another node L2 (same build+config) on a regtest setup. The bolt12 was created using Spark-wallet (but that doesn't seem to matter). BTW #5676 broke the (experimental) bolt12 compatibility with older nodes.Here is the particular
listoffers
entry on L1:Calling
fetchinvoice <bolt12>
on L2 returns:Calling
pay <invoice>
on L2 fails:L1 logs show:
The offers plugin tries to parse the
fee_base_msat
field in thelistincoming
result asu32
integer instead of as msat:lightning/plugins/topology.c
Lines 594 to 596 in 3ae58c4
lightning/plugins/offers_invreq_hook.c
Line 298 in 3ae58c4
With some guesswork I could fix the parsing error using below diff:
But
pay <invoice>
on L2 keeps failing:I got, couldn't find any BROKEN lines in L1 log, but a repeat with
debug:io:channeld
showed the erring message (I think), which decodes, usingdevtools/decodemsg
, to:With an empty
tlvs=
, well that's how far I got.listconfigs
outputThe text was updated successfully, but these errors were encountered: