lightningnetwork / lnd

Lightning Network Daemon ⚡️
MIT License
7.57k stars 2.06k forks source link

feature request: ability to load neutrino cfilters via neutrino subsystem #6625

Open losh11 opened 2 years ago

losh11 commented 2 years ago

Background

Getting neutrino cfilters from random nodes can be slow & computationally expensive (on mobile devices). Adding the ability to load neutrino cfilters can be more efficient, and allows for UX improvements, especially on mobile.

For example on iOS, lnd cannot be kept open in the background. However Apple does allow for simple behaviour like background downloads, which we can use to fetch the latest batch of compact filter updates every day. Another benefit is that from testing (background fetching) is more power efficient on mobile devices compared to background - this means that even though we could sync via lnd in the background on Android, many users will kill/delete a high power resource app.

Roasbeef commented 2 years ago

IIRC both platforms support background HTTP downloads, so that could be a fruitful path.