Skip to content

Move ChainListener from chain::bitcoind to chain - #1162

Merged
tnull merged 1 commit into
lightningdevkit:mainfrom
randomlogin:cbf-prep-move-chain-listener
Oct 14, 2026
Merged

tnull merged 1 commit into
lightningdevkit:mainfrom
randomlogin:cbf-prep-move-chain-listener

Conversation

@randomlogin

Copy link
Copy Markdown
Contributor

ChainListener fans out LDK's Listen callbacks to the on-chain wallet, ChannelManager, ChainMonitor and OutputSweeper. It is not specific to the bitcoind backend, so any other block-driven chain source needs the same type.

Move it, unchanged, next to ChainSource in chain/mod.rs so that other chain sources can reuse it without reaching into the bitcoind module. It stays gated on chain-bitcoind, its only user for now (compact block filter chain source will be another user).

No functional change.

`ChainListener` fans out LDK's `Listen` callbacks to the on-chain
wallet, `ChannelManager`, `ChainMonitor` and `OutputSweeper`. It is not
specific to the bitcoind backend, so any other block-driven chain source
needs the same type.

Move it, unchanged, next to `ChainSource` in `chain/mod.rs` so that
other chain sources can reuse it without reaching into the bitcoind
module. It stays gated on `chain-bitcoind`, its only user for now.

No functional change.

Co-authored-by: febyeji <yeji.han@sf.snu.ac.kr>
@ldk-reviews-bot

ldk-reviews-bot commented Oct 13, 2026 •

Copy link
Copy Markdown

I've assigned @tnull as a reviewer!
I'll wait for their review and will help manage the review process.
Once they submit their review, I'll check if a second reviewer would be helpful.

@tnull tnull left a comment

Copy link
Copy Markdown
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Makes sense.

@tnull
tnull merged commit c34b5c2 into lightningdevkit:main Oct 14, 2026
13 of 25 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants