rust-teos icon indicating copy to clipboard operation
rust-teos copied to clipboard

Auto renew subscriptions

Open sr-gi opened this issue 2 years ago • 1 comments

It may be nice to have an --autorenew subscription flag for the register message so the client does auto-register with the tower if it gets out of appointments, especially if the tower is offering the subscription altruistically.

Currently, if the subscription expires and the user does not realize, pending appointments may start to pile up and waste user resources.

sr-gi avatar Jul 04 '22 07:07 sr-gi

Turns out CoreLN does not support options, only positional (or named) parameters.

sr-gi avatar Oct 19 '22 15:10 sr-gi

I know this is not a solution but I have this command running in a cron to autorenew, if that helps someone: lightning-cli listtowers | jq -r 'to_entries | map(.value += {id:.key} | .value) | map(select(.available_slots<1000))[] | .id + "@" + .net_addr|sub("http://";"")|sub("https://";"")' | xargs -I _ lightning-cli registertower _

3cola avatar Dec 07 '22 19:12 3cola

@3cola that's actually pretty cool. There is an open PR adding this functionality to the plugin though 😁

https://github.com/talaia-labs/rust-teos/pull/164

sr-gi avatar Dec 07 '22 20:12 sr-gi

Closed via https://github.com/talaia-labs/rust-teos/pull/164

sr-gi avatar Jan 10 '23 13:01 sr-gi