accumulator / charge-lnd

charge-lnd is a simple policy based fee manager for LND. With this tool you can set fees to autobalance, recover channel open costs, use on-chain fees as reference, use channel activity to determine fees or just use static fees.
GNU General Public License v2.0
231 stars 44 forks source link

Support for relative paths with `chan.id` #119

Closed Fopstronaut closed 4 months ago

Fopstronaut commented 4 months ago

Can we use relative paths in the config file for peerlists instead of specifying the full path every time?

feelancer21 commented 4 months ago

There is a little hack. You can write chan.id=file:\\mychannel.list, but it only works if you run charge-lnd in the folder of the config, because the paths are interpreted relative to the working dir.

If you like to run charge-lnd via cron, then you can change the directory before: cd /path/to/config/folder; charge-lnd -c file.config instead of charge-lnd -c /path/to/config/folder/file.config

Fopstronaut commented 4 months ago

Oh cool, that actually works! Thanks!