Module sweep

Expand description

This module contains an OutputSweeper utility that keeps track of SpendableOutputDescriptors, i.e., persists them in a given KVStore and regularly retries sweeping them.

Structs§

OutputSweeper
A utility that keeps track of SpendableOutputDescriptors, persists them in a given KVStore and regularly retries sweeping them based on a callback given to the constructor methods.
TrackedSpendableOutput
The state of a spendable output currently tracked by an OutputSweeper.

Enums§

OutputSpendStatus
The current status of the output spend.
SpendingDelay
A enum signalling to the OutputSweeper that it should delay spending an output until a future block height is reached.

Constants§

PRUNE_DELAY_BLOCKS
The number of blocks we wait before we prune the tracked spendable outputs.