Coder Social home page Coder Social logo

ln-telegram's Issues

Better Closing Message Text: Need pre-close Liquidity and Chan Close TXN

I woke up this morning to find a telegram alert that Kollider had force-closed our channel (even though my node was online--but they are closing up shop messily and that's an aside).

Screenshot 2024-01-28 at 9 02 05 AM

Two issues are apparent in the language of the telegram alerts:

  1. Inbound liquidity now: 0.00000000 and Outbound liquidity now: 0.00000000
  2. The funding outpoint is shown but not the closing transaction

Since I had only recently opened the channel and thought the liquidity was all on my side, I did some quick math and with 8M sats starting point and 7,752,952 returned on chain, the telegram alerts make it look like I lost 251,486 sats on the force close.
I had to dig around in my logs to find the channel close txn so I could see how much liquidity was on their side and calculate my cost for the closing transaction, which then turned out to be 10,907 -- much relief!

So it would be awesome if the telegram alerts could show:

  1. The inbound/outbound at the time of close (not what it would be after close)
  2. The closing transaction
  3. If possible, calculate the final cost of the close transaction to our side

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.