Class PostBatchVtxoPollingHandler
Event handler that polls for VTXO updates after a successful batch session. This ensures the local VTXO state is updated with the new outputs from the batch.
public class PostBatchVtxoPollingHandler : IEventHandler<PostBatchSessionEvent>
- Inheritance
-
PostBatchVtxoPollingHandler
- Implements
- Inherited Members
Constructors
PostBatchVtxoPollingHandler(VtxoSynchronizationService, IContractStorage, IVtxoStorage, IOptions<VtxoPollingOptions>, ILogger<PostBatchVtxoPollingHandler>?)
Event handler that polls for VTXO updates after a successful batch session. This ensures the local VTXO state is updated with the new outputs from the batch.
public PostBatchVtxoPollingHandler(VtxoSynchronizationService vtxoSyncService, IContractStorage contractStorage, IVtxoStorage vtxoStorage, IOptions<VtxoPollingOptions> options, ILogger<PostBatchVtxoPollingHandler>? logger = null)
Parameters
vtxoSyncServiceVtxoSynchronizationServicecontractStorageIContractStoragevtxoStorageIVtxoStorageoptionsIOptions<VtxoPollingOptions>loggerILogger<PostBatchVtxoPollingHandler>
Methods
HandleAsync(PostBatchSessionEvent, CancellationToken)
Handles the event asynchronously.
public Task HandleAsync(PostBatchSessionEvent @event, CancellationToken cancellationToken = default)
Parameters
eventPostBatchSessionEventcancellationTokenCancellationToken