Skip to content

Implement coalescing for address pool refills to optimize background task management - #1236

Closed
yemmyharry wants to merge 1 commit into
lightningdevkit:mainfrom
yemmyharry:fix/coalesce-address-pool-refills
Closed

yemmyharry wants to merge 1 commit into
lightningdevkit:mainfrom
yemmyharry:fix/coalesce-address-pool-refills

Conversation

@yemmyharry

@yemmyharry yemmyharry commented Nov 15, 2026 •

Copy link
Copy Markdown

closes #1214

@ldk-reviews-bot

ldk-reviews-bot commented Nov 15, 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.

Hmm, I'm honestly not sure this is worth addressing, given there doesn't seem to be a real bug and mid term we may want to get rid of the AddressPool anyways.

cc @jkczyz WDYT?

@jkczyz

jkczyz commented Nov 18, 2026

Copy link
Copy Markdown
Contributor

Hmm, I'm honestly not sure this is worth addressing, given there doesn't seem to be a real bug and mid term we may want to get rid of the AddressPool anyways.

cc @jkczyz WDYT?

Yeah, probably not worth it. Claude is telling me:

The tasks only accumulate while a store write hangs and a peer keeps opening channels, and a node in that state is already rejecting those opens once the pool is empty.

@tnull

tnull commented Nov 19, 2026

Copy link
Copy Markdown
Collaborator

Hmm, I'm honestly not sure this is worth addressing, given there doesn't seem to be a real bug and mid term we may want to get rid of the AddressPool anyways.
cc @jkczyz WDYT?

Yeah, probably not worth it. Claude is telling me:

The tasks only accumulate while a store write hangs and a peer keeps opening channels, and a node in that state is already rejecting those opens once the pool is empty.

Alright, closing this and #1214 then.

@yemmyharry Thanks for the contribution and excuse the noise!

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.

Coalesce address-pool refill tasks while a store write is stalled

4 participants