Table of Contents

Class PostBatchVtxoPollingHandler

Namespace
NArk.Core.Events
Assembly
NArk.Core.dll

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

vtxoSyncService VtxoSynchronizationService
contractStorage IContractStorage
vtxoStorage IVtxoStorage
options IOptions<VtxoPollingOptions>
logger ILogger<PostBatchVtxoPollingHandler>

Methods

HandleAsync(PostBatchSessionEvent, CancellationToken)

Handles the event asynchronously.

public Task HandleAsync(PostBatchSessionEvent @event, CancellationToken cancellationToken = default)

Parameters

event PostBatchSessionEvent
cancellationToken CancellationToken

Returns

Task