DotNetLightning


WeightRatios Type

We use heuristics to calculate the weight of an edge based on channel age, cltv delta and capacity. We favor older channels, with bigger capacity and small cltv delta

Record fields

Record Field Description

AgeFactor

Full Usage: AgeFactor

Field type: double
Field type: double

CLTVDeltaFactor

Full Usage: CLTVDeltaFactor

Field type: double
Field type: double

CapacityFactor

Full Usage: CapacityFactor

Field type: double
Field type: double

Static members

Static member Description

WeightRatios.TryCreate(cltvDeltaFactor, ageFactor, capacityFactor)

Full Usage: WeightRatios.TryCreate(cltvDeltaFactor, ageFactor, capacityFactor)

Parameters:
    cltvDeltaFactor : double
    ageFactor : double
    capacityFactor : double

Returns: Result<WeightRatios, string>
cltvDeltaFactor : double
ageFactor : double
capacityFactor : double
Returns: Result<WeightRatios, string>