Module sweep
Expand description
This module contains an OutputSweeper
utility that keeps track of
SpendableOutputDescriptor
s, i.e., persists them in a given KVStore
and regularly retries
sweeping them.
Structs§
- Output
Sweeper - A utility that keeps track of
SpendableOutputDescriptor
s, persists them in a givenKVStore
and regularly retries sweeping them based on a callback given to the constructor methods. - Tracked
Spendable Output - The state of a spendable output currently tracked by an
OutputSweeper
.
Enums§
- Output
Spend Status - The current status of the output spend.
- Spending
Delay - A
enum
signalling to theOutputSweeper
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.