On the scalability issues of onboarding millions of LN mobile clients



Summary:

In a discussion about the potential scalability issues of BIP 157, Antoine argued that even with cheaper and more efficient protocols like BIP 157, there could still be a huge discrepancy between what is asked and what is offered. Olaoluwa responded by highlighting the positive aspect of BIP 157+158's protocol, which would make serving light clients stateless, meaning the full node wouldn't need to perform any unique work for a given client. This makes the entire protocol servable over something like HTTP, taking advantage of all the established CDNs and anycast serving infrastructure. The statelessness of compact block filters can be useful since Bloom filters for blocks can be inefficient, leading to slow scan times. During a scan with a BIP37 wallet, it is necessary to discard already received merkle blocks as the filter has been updated, and the previous results may have missed transactions. Both bitcoinj and breadwallet-core handle this using a similar method. With compact block filters, a separate wallet process from the full node can make adjustments necessary to what it needs to filter without having to communicate with the full node.


Updated on: 2023-06-14T01:12:51.066664+00:00