< 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: 36_15743069263
Line coverage
77%
Covered lines: 14
Uncovered lines: 4
Coverable lines: 18
Total lines: 61
Line coverage: 77.7%
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

MethodBranch coverage Crap Score Cyclomatic complexity Line coverage
get_BitcoinNetwork()100%11100%
get_Daemon()100%210%
get_DnsSeedServers()100%11100%
get_ListenAddresses()100%11100%
get_Features()100%11100%
get_NetworkTimeout()100%11100%
get_MustTrimHtlcOutputs()100%210%
get_DustLimitAmount()100%11100%
get_DefaultCltvExpiry()100%210%
get_HasAnchorOutputs()100%11100%
get_MaxAcceptedHtlcs()100%11100%
get_HtlcMinimumAmount()100%11100%
get_Locktime()100%210%
get_ToSelfDelay()100%11100%
get_AllowUpToPercentageOfChannelFundsInFlight()100%11100%
get_MinimumDepth()100%11100%
get_MinimumChannelSize()100%11100%
get_ChannelReserveAmount()100%11100%

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>
 30014    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>
 10424    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>
 10432    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"/>
 10438    public FeatureOptions Features { get; set; } = new();
 39
 40    /// <summary>
 41    /// Network timeout
 42    /// </summary>
 10443    public TimeSpan NetworkTimeout { get; set; } = TimeSpan.FromSeconds(15);
 44
 045    public bool MustTrimHtlcOutputs { get; set; }
 46
 28447    public LightningMoney DustLimitAmount { get; set; } = LightningMoney.Satoshis(354);
 48
 049    public ulong DefaultCltvExpiry { get; set; }
 50
 6451    public bool HasAnchorOutputs { get; set; }
 52
 10453    public ushort MaxAcceptedHtlcs { get; set; } = 5;
 10454    public LightningMoney HtlcMinimumAmount { get; set; } = LightningMoney.Satoshis(1);
 055    public uint Locktime { get; set; }
 16856    public ushort ToSelfDelay { get; set; } = 144;
 10457    public uint AllowUpToPercentageOfChannelFundsInFlight { get; set; } = 80;
 10458    public uint MinimumDepth { get; set; } = 3;
 10459    public LightningMoney MinimumChannelSize { get; set; } = LightningMoney.Satoshis(20_000);
 10460    public LightningMoney ChannelReserveAmount { get; set; } = LightningMoney.Satoshis(546);
 61}