getAlby / js-lightning-tools

Collection of helpful building blocks and tools to develop Bitcoin Lightning web apps
https://www.npmjs.com/package/@getalby/lightning-tools
MIT License
31 stars 14 forks source link

feat: implemented polling mechanism to handle transient network errors #148

Closed ESCCAK closed 2 months ago

rolznz commented 3 months ago

@ESCCAK thanks for the PR! although, I'm not sure if this is needed because the app anyway has to poll to check if the payment is made. The app does not know when the payment will be made, so it has to poll continuously, and should handle errors if one payment verification fails.

@bumi what do you think?

rolznz commented 2 months ago

Closing for now - I think this needs to be handled on the app level.