< 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: 30_15166811759
Line coverage
70%
Covered lines: 12
Uncovered lines: 5
Coverable lines: 17
Total lines: 57
Line coverage: 70.5%
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_Network()100%11100%
get_Daemon()100%210%
get_DnsSeedServers()100%11100%
get_ListenAddresses()100%11100%
get_Features()100%11100%
get_NetworkTimeout()100%11100%
get_AnchorAmount()100%11100%
get_MustTrimHtlcOutputs()100%11100%
get_DustLimitAmount()100%11100%
get_DefaultCltvExpiry()100%210%
get_HasAnchorOutputs()100%11100%
get_MaxAcceptedHtlcs()100%210%
get_HtlcMinimumAmount()100%11100%
get_Locktime()100%210%
get_ToSelfDelay()100%210%
get_MaxHtlcValueInFlight()100%11100%
get_MinimumDepth()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;
 4
 5public class NodeOptions
 6{
 7    /// <summary>
 8    /// The network to connect to. Can be "mainnet", "testnet", or "regtest"
 9    /// </summary>
 22810    public string Network { get; set; } = "mainnet";
 11
 12    /// <summary>
 13    /// True if NLTG should run in Daemon mode (background)
 14    /// </summary>
 015    public bool Daemon { get; set; }
 16
 17    /// <summary>
 18    /// A list of dns seed servers to connect to
 19    /// </summary>
 11620    public List<string> DnsSeedServers { get; set; } = ["nlseed.nlightn.ing"];
 21
 22    /// <summary>
 23    /// Addresses/Interfaces to listen on for incoming connections
 24    /// </summary>
 25    /// <remarks>
 26    /// Addresses should be in the format "ip:port" or "hostname:port"
 27    /// </remarks>
 11628    public List<string> ListenAddresses { get; set; } = ["127.0.0.1:9735"];
 29
 30    /// <summary>
 31    /// List of Features the node offers/expects to/from peers
 32    /// </summary>
 33    /// <see cref="FeatureOptions"/>
 26034    public FeatureOptions Features { get; set; } = new();
 35
 36    /// <summary>
 37    /// Network timeout
 38    /// </summary>
 16439    public TimeSpan NetworkTimeout { get; set; } = TimeSpan.FromSeconds(15);
 40
 32441    public LightningMoney AnchorAmount { get; set; } = LightningMoney.Satoshis(330);
 42
 10043    public bool MustTrimHtlcOutputs { get; set; }
 44
 24045    public LightningMoney DustLimitAmount { get; set; } = LightningMoney.Satoshis(546);
 46
 047    public ulong DefaultCltvExpiry { get; set; }
 48
 449    public bool HasAnchorOutputs => !AnchorAmount.IsZero;
 50
 051    public ushort MaxAcceptedHtlcs { get; set; }
 11652    public LightningMoney HtlcMinimumAmount { get; set; } = LightningMoney.Satoshis(1);
 053    public uint Locktime { get; set; }
 054    public ushort ToSelfDelay { get; set; }
 11655    public LightningMoney MaxHtlcValueInFlight { get; set; } = LightningMoney.Satoshis(1_000_000);
 11656    public uint MinimumDepth { get; set; } = 3;
 57}