Add chain syncing via compact block filters (BIP 157)#828
Draft
febyeji wants to merge 10 commits intolightningdevkit:mainfrom
Draft
Add chain syncing via compact block filters (BIP 157)#828febyeji wants to merge 10 commits intolightningdevkit:mainfrom
febyeji wants to merge 10 commits intolightningdevkit:mainfrom
Conversation
|
👋 Hi! I see this is a draft PR. |
2c0b1d8 to
2144477
Compare
2144477 to
bc490b0
Compare
bc490b0 to
6e39d0d
Compare
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Summary
Add chain syncing via compact block filters (BIP 157/158) using the
bip157crate. Related to the issue #767.Introduces
CbfChainSource: a new chain backend that syncs wallet and Lightning state through compact block filters over the Bitcoin P2P network.Commits
Structured to build up the CBF backend layer by layer, with integration tests added alongside the features they exercise.
configuration surface (1)
→ core P2P lifecycle (2)
→ fee estimation (3)
→ on-chain sync pipeline (4–6)
→ Lightning integration (7)
→ reorg handling (8)
→ docs, tests, and bindings (9–11)
Design decisions
bip157crate #767 discussion)sync_wallets()) + optional background sync viaBackgroundSyncConfig--test-threads=1(exclusive bitcoind P2P port access)