alexbosworth / balanceofsatoshis

Tool for working with the balance of your satoshis on LND
MIT License
554 stars 78 forks source link

[open]: Add simple balance check for bos open #556

Closed niteshbalusu11 closed 11 months ago

niteshbalusu11 commented 11 months ago

Signed-off-by: Nitesh Balusu 84944042+niteshbalusu11@users.noreply.github.com

I have noticed this morning that when doing an internal channel open, if you don't have enough chain balance and the open fails, it's leaving behind pending channels and if you clear the terminal its hard to get the IDs to cancel those pending channels. Added a simple chain balance check so that channel open isn't attempted if you don't have enough balance.