Comments (5)
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.
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.
from go-host-lnaddr.
Currently being solved in #6
from go-host-lnaddr.
This has been merged.
from go-host-lnaddr.
Related Issues (11)
- Prevent invoice spam HOT 1
- Tiered payment notifications
- Print message if instance of server is already running
- Invoice subscription via r_hash fails HOT 18
- Nostr zap support HOT 5
- RPC error on invoice creation HOT 1
- Doc/config discrepancy HOT 1
- Config should provide paths to invoice.macaroon rather than the hexified macaroon itself
- Support LNURL pay response metadata image
- License HOT 1
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
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.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from go-host-lnaddr.