Skip to content

Add OutputSweeper utility persisting and sweeping spendable outputs#2825

Merged
TheBlueMatt merged 7 commits intolightningdevkit:mainfrom
tnull:2024-01-upstream-output-sweeper
Apr 18, 2024
Merged

Add OutputSweeper utility persisting and sweeping spendable outputs#2825
TheBlueMatt merged 7 commits intolightningdevkit:mainfrom
tnull:2024-01-upstream-output-sweeper

Conversation

@tnull
Copy link
Copy Markdown
Contributor

@tnull tnull commented Jan 12, 2024

We add a OutputSweeper utility that allows to track the state of spendable output descriptors as emitted by Event::SpendableOutputs.

To this end, the OutputSweeper persists the necessary information in our KVStore and regularly tries to sweep the spendable outputs, removing them after reaching threshold confirmations, i.e., ANTI_REORG_DELAY.

This is a generalized version of the module previously added to LDK Node: lightningdevkit/ldk-node#152.

TODOs:

  • Add test coverage (likely in BackgroundProcessor tests)

Loading
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.

5 participants