Class 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 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
virtualTxServiceVirtualTxServiceloggerILogger<PostSpendVirtualTxPruneHandler>
Methods
HandleAsync(PostCoinsSpendActionEvent, CancellationToken)
Handles the event asynchronously.
public Task HandleAsync(PostCoinsSpendActionEvent @event, CancellationToken cancellationToken = default)
Parameters
eventPostCoinsSpendActionEventcancellationTokenCancellationToken