Table of Contents

Class PostSpendVirtualTxPruneHandler

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

After a successful spend, prunes virtual tx data for spent VTXOs. Per-tx storage handles shared nodes naturally — orphan cleanup only removes VirtualTx rows with zero remaining VtxoBranch references.

public class PostSpendVirtualTxPruneHandler : IEventHandler<PostCoinsSpendActionEvent>
Inheritance
PostSpendVirtualTxPruneHandler
Implements
Inherited Members

Constructors

PostSpendVirtualTxPruneHandler(VirtualTxService, ILogger<PostSpendVirtualTxPruneHandler>?)

After a successful spend, prunes virtual tx data for spent VTXOs. Per-tx storage handles shared nodes naturally — orphan cleanup only removes VirtualTx rows with zero remaining VtxoBranch references.

public PostSpendVirtualTxPruneHandler(VirtualTxService virtualTxService, ILogger<PostSpendVirtualTxPruneHandler>? logger = null)

Parameters

virtualTxService VirtualTxService
logger ILogger<PostSpendVirtualTxPruneHandler>

Methods

HandleAsync(PostCoinsSpendActionEvent, CancellationToken)

Handles the event asynchronously.

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

Parameters

event PostCoinsSpendActionEvent
cancellationToken CancellationToken

Returns

Task