lightningdevkit / lightningdevkit.org

Lightning Development Kit Documentation
https://lightningdevkit.org
MIT License
59 stars 39 forks source link

Provide best practices guidance on mobile UX for sending payments #111

Open moneyball opened 2 years ago

moneyball commented 2 years ago

(a) use optimal mobile OS APIs to background sync (b) when app is brought to foreground, prioritize LN network graph data sync (c) then download remaining block data

Because LN payments can be sent without having the blockchain sync'd (step c). So b should be prioritized over c since that data is required for sending, then by allowing users to send after b but before c there is less latency for the user (ideally none if step a works well and/or step b is fast).