perfectly-balanced icon indicating copy to clipboard operation
perfectly-balanced copied to clipboard

De-balancing already balanced channels

Open jshplayer opened this issue 2 years ago • 0 comments

Hey, this is an awesome variant of Otto's script as i've been looking for something that targets all channels.

One issue i'm having however is that it keeps re-balancing and pulling liquidity from already balanced channels causing a loop of infinite balancing attempts wasting satoshis. Any reason for this? i'd assume it'd ignore channels that are already balanced and not attempt pulling liquidity out of them to feed other channels.

Here's an example - note the repeated back and forth balancing of the same channels:

BOS Lightning Node, [11/07/2022 3:47 AM] ☯️ Rebalanced 0.00173464 out Alfholanda → ChronicCoins. Fee: 0.00000003 0.00% (17)

BOS Lightning Node, [11/07/2022 4:21 AM] ☯️ Rebalanced 0.00000184 out Alfholanda → ChronicCoins. Fee: 0.00000001 0.54% (5440)

BOS Lightning Node, [11/07/2022 6:35 AM] ☯️ Rebalanced 0.00281043 out ChronicCoins → Alfholanda. Fee: 0.00000007 0.00% (24)

BOS Lightning Node, [11/07/2022 10:09 AM] ☯️ Rebalanced 0.00280724 out Alfholanda → ChronicCoins. Fee: 0.00000004 0.00% (15)

BOS Lightning Node, [11/07/2022 12:44 PM] ☯️ Rebalanced 0.00280728 out ChronicCoins → Alfholanda. Fee: 0.00000007 0.00% (24)

BOS Lightning Node, [11/07/2022 3:49 PM] ☯️ Rebalanced 0.00280578 out Alfholanda → ChronicCoins. Fee: 0.00000004 0.00% (15)

BOS Lightning Node, [11/07/2022 7:05 PM] ☯️ Rebalanced 0.00281706 out ChronicCoins → Alfholanda. Fee: 0.00000007 0.00% (24)

jshplayer avatar Jul 12 '22 05:07 jshplayer