-
Notifications
You must be signed in to change notification settings - Fork 902
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
fees going to the moon when trying to pay an invoice #1091
Comments
Given the high Note that we cannot check if the route is viable without actually executing the payment. So if you requested for example at 0.5% |
Thanks. Kind of makes perfect sense, even though i thought the fee sounded a bit high. still cheaper than on-chain :) |
Well the payment being made is 21 satoshi, which is very low, so fees become much higher in proportion; more typical payments in the millibitcoin and microbitcoin range will have the fee negligible in proportion to the payment. The route should be visible in the logs at the debug level, but do note that it takes quite a bit of time between routing attempts when it is actually performing the payment. If there is much other activity on your node you will have to dig through the logs. I should probably report more details during payment... |
can confirm that I've also encountered this behavior, regardless of what fee I put in, the error says that it's less than the minimum required, e.g.
until finally
|
Yes, this can indeed happen: there are no routes that are viable (i.e. all routes to the destination are depleted in the direction you are going on). We cannot know this fact until we try all routes, and we cannot really try a route without potentially paying it, and if the feerate is higher than the user-given max feerate then that is probably worse behavior (there is no point in specifying a user-given max feerate if we do not respect it anyway). I think I shall mark this as |
I agree it is a |
When increasing the allowed fee percentage, the fees increase as well.
$ cli/lightning-cli pay lnbc210n1pdfzmm0pp549h0putsurt0wsx76903h0f7ua3gjjjv3r6pyggm3r3cgzz6926sdr80v3xgg36yfqkgepqvysxxmmdd4jkuapz9s3xjg36ygurgvmyx4skvdedxfsnqv3dxsukgvfdvfnxzdpd8ycnvcm98yeryvr9vcejylgcqzysecu2ntuq7fanzh8w7f5x65ykqettx5kfn6a0krqrwlgyt8ssmp9pyk5t6c3u4vx248j984pyruf2h6usqxk2sdrafm0pdv8suhl7faqpc7j8uk
{ "code" : 206, "message" : "Fee 1001 is 4.766667% of payment 21000; max fee requested is 0.500000%", "data" : { "fee" : 1001, "feepercent" : 4.766667, "msatoshi" : 21000, "maxfeepercent" : 0.500000 } }
$ cli/lightning-cli pay lnbc210n1pdfzmm0pp549h0putsurt0wsx76903h0f7ua3gjjjv3r6pyggm3r3cgzz6926sdr80v3xgg36yfqkgepqvysxxmmdd4jkuapz9s3xjg36ygurgvmyx4skvdedxfsnqv3dxsukgvfdvfnxzdpd8ycnvcm98yeryvr9vcejylgcqzysecu2ntuq7fanzh8w7f5x65ykqettx5kfn6a0krqrwlgyt8ssmp9pyk5t6c3u4vx248j984pyruf2h6usqxk2sdrafm0pdv8suhl7faqpc7j8uk null null null 5
{ "code" : 206, "message" : "Fee 1501 is 7.147619% of payment 21000; max fee requested is 5.000000%", "data" : { "fee" : 1501, "feepercent" : 7.147619, "msatoshi" : 21000, "maxfeepercent" : 5.000000 } }
$ cli/lightning-cli pay lnbc210n1pdfzmm0pp549h0putsurt0wsx76903h0f7ua3gjjjv3r6pyggm3r3cgzz6926sdr80v3xgg36yfqkgepqvysxxmmdd4jkuapz9s3xjg36ygurgvmyx4skvdedxfsnqv3dxsukgvfdvfnxzdpd8ycnvcm98yeryvr9vcejylgcqzysecu2ntuq7fanzh8w7f5x65ykqettx5kfn6a0krqrwlgyt8ssmp9pyk5t6c3u4vx248j984pyruf2h6usqxk2sdrafm0pdv8suhl7faqpc7j8uk null null null 8
{ "code" : 206, "message" : "Fee 2000 is 9.523810% of payment 21000; max fee requested is 8.000000%", "data" : { "fee" : 2000, "feepercent" : 9.523810, "msatoshi" : 21000, "maxfeepercent" : 8.000000 } }
$ cli/lightning-cli pay lnbc210n1pdfzmm0pp549h0putsurt0wsx76903h0f7ua3gjjjv3r6pyggm3r3cgzz6926sdr80v3xgg36yfqkgepqvysxxmmdd4jkuapz9s3xjg36ygurgvmyx4skvdedxfsnqv3dxsukgvfdvfnxzdpd8ycnvcm98yeryvr9vcejylgcqzysecu2ntuq7fanzh8w7f5x65ykqettx5kfn6a0krqrwlgyt8ssmp9pyk5t6c3u4vx248j984pyruf2h6usqxk2sdrafm0pdv8suhl7faqpc7j8uk null null null 10
{ "preimage" : "ad9510bee09e882805a80bf4608f4ff427ac7ff062ccea05d73b290ec029a421", "tries" : 16 }
The text was updated successfully, but these errors were encountered: