Table of Contents

Class FundingCreatedMessageHandler

Namespace
NLightning.Application.Channels.Handlers
Assembly
NLightning.Application.dll
public class FundingCreatedMessageHandler : IChannelMessageHandler<FundingCreatedMessage>
Inheritance
FundingCreatedMessageHandler
Implements
Inherited Members

Constructors

FundingCreatedMessageHandler(IBlockchainMonitor, IChannelIdFactory, IChannelMemoryRepository, ICommitmentTransactionBuilder, ICommitmentTransactionModelFactory, ILightningSigner, ILogger<FundingCreatedMessageHandler>, IMessageFactory, IUnitOfWork)

public FundingCreatedMessageHandler(IBlockchainMonitor blockchainMonitor, IChannelIdFactory channelIdFactory, IChannelMemoryRepository channelMemoryRepository, ICommitmentTransactionBuilder commitmentTransactionBuilder, ICommitmentTransactionModelFactory commitmentTransactionModelFactory, ILightningSigner lightningSigner, ILogger<FundingCreatedMessageHandler> logger, IMessageFactory messageFactory, IUnitOfWork unitOfWork)

Parameters

blockchainMonitor IBlockchainMonitor
channelIdFactory IChannelIdFactory
channelMemoryRepository IChannelMemoryRepository
commitmentTransactionBuilder ICommitmentTransactionBuilder
commitmentTransactionModelFactory ICommitmentTransactionModelFactory
lightningSigner ILightningSigner
logger ILogger<FundingCreatedMessageHandler>
messageFactory IMessageFactory
unitOfWork IUnitOfWork

Methods

HandleAsync(FundingCreatedMessage, ChannelState, FeatureOptions, CompactPubKey)

Handles a channel message and returns a response message if needed

public Task<IChannelMessage?> HandleAsync(FundingCreatedMessage message, ChannelState currentState, FeatureOptions negotiatedFeatures, CompactPubKey peerPubKey)

Parameters

message FundingCreatedMessage

The message to handle

currentState ChannelState

The current state of the channel

negotiatedFeatures FeatureOptions

Features negotiated with the peer

peerPubKey CompactPubKey

The public key of the peer

Returns

Task<IChannelMessage>

A response message if needed, or null if no response is needed