itsneski / lightning-jet

Lightning Jet is a fully automated rebalancer for Lightning nodes. Jet optimizes channel liquidity allocation based on routing volume, missed routing opportunities (htlcs), and other variables.
MIT License
44 stars 11 forks source link

Rebalancer broken after upgrade (manual invocation, automatic rebalancing functional) #105

Closed dskvr closed 5 months ago

dskvr commented 7 months ago

error running rebalance loop: Error: missing param

from (obfuscated)

jet rebalance node1 node2 100 --ppm 1 --mins 1

Looking at the source and the cli interface

   USAGE

     jet rebalance <from> <to> <amount>

     Calls BalanceOfSatoshis rebalance api in a loop until the target amount is met or all possible routes are exhausted.

   ARGUMENTS

     <from>        From this peer. Can be a partial alias, a pub id, or a bos tag      required
     <to>          To this peer. Can be a partial alias, a pub id, or a bos tag        required
     <amount>      Amount in sats                                                      required

   OPTIONS

     --ppm <ppm>        Max ppm                         optional
     --mins [mins]      Max time to run in minutes      optional

it is clear there are no missing params.

Additionally, post-upgrade, I had to add a db member to config, which is not shown in the example config in README.md

dskvr commented 5 months ago

This issue resolved itself. Unsure of what caused and resolved the issue.