lightning-jet icon indicating copy to clipboard operation
lightning-jet copied to clipboard

Changing fees 'jet update-channel'

Open maxrantil opened this issue 3 years ago • 3 comments

I just had a little problem when changing the channel fees, wanted to change the basefee on all my channels so I did that, 'jet update-channel xxxx --base xxxx', thought only the basefee would change - but the ppm got 0'ed on all channels. My point is, wouldn't it be better if only the basefee would changed and the old ppm would stay the same? I thought it would be more intuitive that way. I heard it's the same when changing --ppm and not --base. But now I know from my mistake :) just some friendly feedback 🙌

maxrantil avatar Apr 10 '22 18:04 maxrantil

jet calls the lnd api to update channel fees; the call is supposed to keep ppm intact, but it doesn't. The same issue is when setting ppm, it resets the base fee.

one option is for jet to loop through all the channels and set fees individually based on the channel's current base and ppm.

itsneski avatar Apr 11 '22 22:04 itsneski

i think it makes sense to add an explicit option to change fees on all channels, as in `jet update-channel --all --base 10' to update the base fee to 10 msat on all channels.

itsneski avatar Apr 14 '22 17:04 itsneski

That sounds like a perfect solution to me!

maxrantil avatar May 08 '22 11:05 maxrantil