Class OnchainSweepService
Detects expired boarding/unrolled UTXOs and sweeps them via the unilateral exit path to a fresh boarding address. This is a safety net for UTXOs whose CSV timeout has expired before they were consumed in a batch.
public class OnchainSweepService
- Inheritance
-
OnchainSweepService
- Inherited Members
Constructors
OnchainSweepService(IVtxoStorage, IContractStorage, IBitcoinBlockchain, IContractService, IWalletProvider, IClientTransport, IOnchainSweepHandler?, ILogger<OnchainSweepService>?)
Detects expired boarding/unrolled UTXOs and sweeps them via the unilateral exit path to a fresh boarding address. This is a safety net for UTXOs whose CSV timeout has expired before they were consumed in a batch.
public OnchainSweepService(IVtxoStorage vtxoStorage, IContractStorage contractStorage, IBitcoinBlockchain blockchain, IContractService contractService, IWalletProvider walletProvider, IClientTransport transport, IOnchainSweepHandler? sweepHandler = null, ILogger<OnchainSweepService>? logger = null)
Parameters
vtxoStorageIVtxoStoragecontractStorageIContractStorageblockchainIBitcoinBlockchaincontractServiceIContractServicewalletProviderIWalletProvidertransportIClientTransportsweepHandlerIOnchainSweepHandlerloggerILogger<OnchainSweepService>
Methods
SweepExpiredUtxosAsync(CancellationToken)
Scans for expired unrolled/boarding UTXOs and sweeps them. Call on-demand; caller may wrap in a timer for periodic execution.
public Task SweepExpiredUtxosAsync(CancellationToken cancellationToken)
Parameters
cancellationTokenCancellationToken