rust-teos
rust-teos copied to clipboard
Auto renew subscriptions
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.
Turns out CoreLN does not support options, only positional (or named) parameters.
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 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
Closed via https://github.com/talaia-labs/rust-teos/pull/164