< Summary - Combined Code Coverage

Information
Class: NLightning.Domain.Node.Options.NodeOptions
Assembly: NLightning.Domain
File(s): /home/runner/work/NLightning/NLightning/src/NLightning.Domain/Node/Options/NodeOptions.cs
Tag: 57_24045730253
Line coverage
72%
Covered lines: 13
Uncovered lines: 5
Coverable lines: 18
Total lines: 60
Line coverage: 72.2%
Branch coverage
N/A
Covered branches: 0
Total branches: 0
Branch coverage: N/A
Method coverage

Feature is only available for sponsors

Upgrade to PRO version

Metrics

File(s)

/home/runner/work/NLightning/NLightning/src/NLightning.Domain/Node/Options/NodeOptions.cs

#LineLine coverage
 1namespace NLightning.Domain.Node.Options;
 2
 3using Money;
 4using Protocol.Constants;
 5using Protocol.ValueObjects;
 6
 7public class NodeOptions
 8{
 9    // private FeatureOptions _features;
 10
 11    /// <summary>
 12    /// The network to connect to. Can be "mainnet", "testnet", or "regtest"
 13    /// </summary>
 33614    public BitcoinNetwork BitcoinNetwork { get; set; } = NetworkConstants.Mainnet;
 15
 16    /// <summary>
 17    /// True if NLTG should run in Daemon mode (background)
 18    /// </summary>
 019    public bool Daemon { get; set; }
 20
 21    /// <summary>
 22    /// A list of dns seed servers to connect to
 23    /// </summary>
 11624    public List<string> DnsSeedServers { get; set; } = ["nlseed.nlightn.ing"];
 25
 26    /// <summary>
 27    /// Addresses/Interfaces to listen on for incoming connections
 28    /// </summary>
 29    /// <remarks>
 30    /// Addresses should be in the format "ip:port" or "hostname:port"
 31    /// </remarks>
 11632    public List<string> ListenAddresses { get; set; } = ["127.0.0.1:9735"];
 33
 34    /// <summary>
 35    /// List of Features the node offers/expects to/from peers
 36    /// </summary>
 37    /// <see cref="FeatureOptions"/>
 11638    public FeatureOptions Features { get; set; } = new();
 39
 40    /// <summary>
 41    /// Network timeout
 42    /// </summary>
 11643    public TimeSpan NetworkTimeout { get; set; } = TimeSpan.FromSeconds(15);
 44
 045    public bool MustTrimHtlcOutputs { get; set; }
 46
 29647    public LightningMoney DustLimitAmount { get; set; } = LightningMoney.Satoshis(354);
 48
 049    public ulong DefaultCltvExpiry { get; set; }
 50
 6451    public bool HasAnchorOutputs { get; set; }
 52
 11653    public ushort MaxAcceptedHtlcs { get; set; } = 5;
 11654    public LightningMoney HtlcMinimumAmount { get; set; } = LightningMoney.Satoshis(1);
 055    public uint Locktime { get; set; }
 18056    public ushort ToSelfDelay { get; set; } = 144;
 11657    public uint AllowUpToPercentageOfChannelFundsInFlight { get; set; } = 80;
 11658    public uint MinimumDepth { get; set; } = 3;
 11659    public LightningMoney MinimumChannelSize { get; set; } = LightningMoney.Satoshis(20_000);
 060}