C-Otto / rebalance-lnd

A script that can be used to balance lightning channels of a lnd node
MIT License
343 stars 82 forks source link

Feature request: Allow rebalance-lnd to run remotely on a different machine #228

Closed niteshbalusu11 closed 3 years ago

niteshbalusu11 commented 3 years ago

Hey! I run my node on AWS and it struggles to handle multiple parallel rebalances because memory usage spikes up so I do most tasks like bos rebalances from my laptop via grpc. Can you add support for like a JSON file that stores base64 values of macaroon, cert and socket that lets rebalance-lnd connect to your node and it uses it to authenticate and run rebalances from a different machine?

C-Otto commented 3 years ago

What about --lnddir and --grpc?

niteshbalusu11 commented 3 years ago

What about --lnddir and --grpc?

but that would mean I have to download the lnd folder onto my machine, correct?

C-Otto commented 3 years ago

You just need to have tls.cert and data/chain/bitcoin/mainnet/admin.macaroon in there.

C-Otto commented 3 years ago

Feel free to reopen if this doesn't work.