bitcoindevkit / bitcoindevkit/BDKSwiftExampleWallet

Add periodic CBF sync in background process

Đang mở
#352 1 bình luận 0 reaction 0 người được giao Xem trên GitHub
enhancement
Ngôn ngữ chính
Swift
Star
31
Fork
16
Chỉ số merge pull request
Không có pull request nào được merge trong 30 ngày

Mô tả

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

Hướng dẫn đóng góp

Mở hướng dẫn đóng góp

Hướng nghiên cứu

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.

Do mô hình lập chỉ mục viết ra từ nội dung của issue.

Đánh giá

Công nghệ
ios, swift
Lĩnh vực
mobile
Loại issue
Tính năng
Độ khó
5/5
Thời gian dự kiến
Hơn một tuần
Mức độ hoạt động
Đình trệ
Độ rõ ràng
Cần làm rõ
Mức phù hợp với người mới
30/100

Nhận issue mới trong hộp thư của bạn

Bản tóm tắt ngắn những issue GitHub phù hợp với người mới.