Git Product home page Git Product logo

Comments (5)

rkfg avatar rkfg commented on July 20, 2024 2

I think that event observer won't work here. For some reason lnd gRPC protocol doesn't have the amount field in the incoming payment events. That field is only present in forwarding and outgoing payment events which isn't the case here. Lightningtip listens for invoice settlements, however, and getting the amount from there should be easier. Also need to filter those invoices by hash so we don't accidentally spam the user with unrelated settlements. This method is used for this purpose.

Regarding Telegram, I don't use it and will never recommend it to anyone, especially Bitcoiners. It's a very shady FOSS-washing (FOSS on paper but not in reality, just code dumps with zero community involvement, actually hostile towards community and FOSS ideals) 100% centralized (no federation support) messenger that tightly cooperates with Russian special services, poor privacy (requires phone number to register, phones were leaked multiple times), security (in-house buggy encryption schemes) and unknown funding sources. If you want to have good privacy (more or less because it's always a compromise between that and usability) I'd suggest installing your own Matrix server and using Element. A Matrix notification bot would be another good implementation and the SDK is pretty trivial.

from go-host-lnaddr.

hieblmi avatar hieblmi commented on July 20, 2024 1

I agree on the take on Telegram, was just playing around with it for the first time.

And yes - it looks like upon payment receipt only a lnd SettleEvent(stating our preimage) is triggered but not ForwardEvents that we could read the amounts etc. from.
The method for related invoice filtering you describe makes sense to me. Do you think it makes sense to integrate the invoice settlement stuff into https://github.com/hieblmi/go-lnd-router-events? Clients could then additionally subscribe to invoice settlements. Will look into your reference of Lightningtip when I get some time :-).

from go-host-lnaddr.

hieblmi avatar hieblmi commented on July 20, 2024

from go-host-lnaddr.

rkfg avatar rkfg commented on July 20, 2024

Currently being solved in #6

from go-host-lnaddr.

hieblmi avatar hieblmi commented on July 20, 2024

This has been merged.

from go-host-lnaddr.

Related Issues (11)

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.