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§
- Output
Sweeper - A utility that keeps track of
SpendableOutputDescriptors, persists them in a givenKVStoreand 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
enumsignalling to theOutputSweeperthat 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.