Skip to content

spark-wallet able to detect whether xpay-handle-pay is true or false #7953

@hMsats

Description

@hMsats

"version": "v24.11-18-g2c8d9d0" (master)

Main spark-wallet wallet offer: lno1pgp79x4pzcssxxtelekwpe57eekenf9uffanpmfz4r9cwq7a0hfdltmpncr3ylst
Test spark-wallet tries to pay some msats to main wallet

When I use (my version of) spark-wallet to pay, something still doesn't work well:
If xpay-handle-pay=false, the payment goes through but after I set xpay-handle-pay=true I get "Invalid parameter amount_msat (should be a millisatoshi amount): token 'null'".

I don't understand how this can happen. I know one could say it's a spark-wallet thingy but spark-wallet does the same thing, it doesn't know that pay is being redirected to xpay.

If I do it all on the command line everything works just fine.

How is it possible that spark-wallet is able to detect whether xpay-handle-pay is false or true?

Maybe someone has an idea?

Older version example (what happens on the test (paying) lightning node) but it's still that way (starts with xpay-handle-pay=true):

< 2024-12-17T18:29:13.499Z INFO    plugin-cln-xpay: Redirecting pay->xpay
< 2024-12-17T18:29:13.499Z INFO    plugin-cln-xpay: JSON COMMAND xpay-as-pay: Invalid parameter amount_msat (should be a millisatoshi amount): token 'null'
< 2024-12-17T18:31:53.030Z INFO    lightningd: setconfig: xpay-handle-pay false (updated /media/ssd/.lightning_test/bitcoin/config:2)
< 2024-12-17T18:32:08.702Z INFO    plugin-pay: cmd 17211/cln:pay#34952 partid 0: Paying invoice bolt11=lni1qqgrww60g0yacd7x3uektfrrnlnuwzqz4lyq5gtsd3shjetjtacxjvtrdvurgun8dd3xuutp8p4rq6rfxd3kcwfsx343vggrr9ulum8qu60vumve5j7y57esa5323ju8q0whm5kl4aseupcj0c94sggzurdgxt4q8vqvzpmnr6e0q4wd60ty5u6t380scasapj78lz4qvcy9j0rvdehnz7nrwdenjvnhd43njetev9h8wer2wdkhj6n80pcnjwrc894kvum3wvuryvmxwf68smn3v4nkcunh8qu8vctvx4erwe9qnqp3j707dnswd8kwdkv6f0z20vcw6g4gewrs8hta6t067cv7quf8uzcrfyhzzh9y0uqx0lkd9228rvy2ctnc6v9vkec7eghqe777fthnt45qzqk2gduwdae0kcka920wnft23a2y37zcpmunfxayff6j30kkqn6pjsqr9majkpa5tsgs7x5pd498p5pmw9ryrag7c3k49396wd62llmerrc7swy2x0amgtj9swyyx9933sl9cyymlgsuqqqqqqqqqqqqqqqjqqqqqqqqqqqqq8fykt06c5sqqqqqpfqyvasu829gyzgh5knnc827x8nwly72nxupd6ugn5xxcdhssp8qfwll4xqydqfhp2sz4lytqggrr9ulum8qu60vumve5j7y57esa5323ju8q0whm5kl4aseupcj0c9lqsxy20nalu8mayatrs4jwgtrpl8lk032wk9lts5h9xfns882ute927k5fyd5cl94vuhpwq6umvptvaqk4za2vvpv76z3h79xu23ydvpky
< 2024-12-17T18:32:08.760Z INFO    plugin-pay: cmd 17211/cln:pay#34952 partid 0: Payment fee constraint 225msat is below exemption threshold, allowing a maximum fee of 5000msat
< 2024-12-17T18:32:08.800Z INFO    lightningd: Sending 45000msat in onion to deliver 45000msat

Fun fact: I bought a Royal Club tonic at Bitcoin Amsterdam with renepay (from the command line): photo

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions