public void HandleLocalFundingLocked(IPeer peer, LocalChannel channel) { if (channel.State == LocalChannelState.NormalOperation) { return; } channel.State = channel.State == LocalChannelState.FundingLocked ? LocalChannelState.NormalOperation : LocalChannelState.FundingLocked; channel.LocalCommitmentTxParameters.NextPerCommitmentPoint = _commitmentService.GetNextLocalPerCommitmentPoint(channel); _channelService.UpdateChannel(channel); SendFundingLocked(peer, channel); }