bitcoindevkit / bitcoindevkit/BDKSwiftExampleWallet

Add periodic CBF sync in background process

未关闭
#352 1 条评论 0 个 reaction 已指派 0 人 在 GitHub 查看
enhancement
主要语言
Swift
星标
31
派生
16
PR 合并指标
30 天内没有已合并 PR

描述

Most blocks will not be relevant to the user, but all compact block filters need to be checked. To ensure the bandwidth requirement is low when the user opens the app, we will probably want to check these in a background task via [`BGProcessingTask`](https://developer.apple.com/documentation/backgroundtasks/bgprocessingtask) at good times (i.e. phone is plugged into the charger and on WiFi). If this is done around once per week, the task should have plenty of time to run before getting killed by the OS. Some prerequisites before we'd be able to do this:
- Access to the public descriptors when the phone is locked, so we may create a `Wallet`.
- #351 to help record if the background task is actually running on live devices.

Demonstrating this should be helpful for developers looking to integrate compact block filters, and is just about as "cutting edge" as we can get with the current capabilities of iOS

贡献指南

打开贡献指南

调研方向

Start with Apple’s BGProcessingTask documentation and the prerequisite in #351, then verify how public descriptors could permit creating a Wallet while the phone is locked. Done means the app periodically checks compact block filters in a background task under suitable charging and Wi-Fi conditions, with the behavior demonstrated for developers.

由索引模型根据 Issue 内容生成。

评估

技术栈
ios, swift
领域
mobile
Issue 类型
功能
难度
5/5
预计耗时
一周以上
活跃度
停滞
描述清晰度
需要澄清
新手友好度
30/100

把新 issue 发到你的邮箱

精选适合新手参与的 GitHub issue 摘要。