X-Git-Url: http://git.bitcoin.ninja/index.cgi?p=ldk-java;a=blobdiff_plain;f=c_sharp%2Fsrc%2Forg%2Fldk%2Fstructs%2FScorerAccountingForInFlightHtlcs.cs;h=add28b36884da95303dc6a526326bce748ff1a98;hp=ea8ffc5389d4b026fd24415aa124900abec4236f;hb=8de7213fbf663ff60322896282dad51e8ab2f001;hpb=afc50e5d491a11364849383b75a8f939df703bac diff --git a/c_sharp/src/org/ldk/structs/ScorerAccountingForInFlightHtlcs.cs b/c_sharp/src/org/ldk/structs/ScorerAccountingForInFlightHtlcs.cs index ea8ffc53..add28b36 100644 --- a/c_sharp/src/org/ldk/structs/ScorerAccountingForInFlightHtlcs.cs +++ b/c_sharp/src/org/ldk/structs/ScorerAccountingForInFlightHtlcs.cs @@ -7,12 +7,12 @@ namespace org { namespace ldk { namespace structs { /** - * [`Score`] implementation that factors in in-flight HTLC liquidity. + * [`ScoreLookUp`] implementation that factors in in-flight HTLC liquidity. * - * Useful for custom [`Router`] implementations to wrap their [`Score`] on-the-fly when calling + * Useful for custom [`Router`] implementations to wrap their [`ScoreLookUp`] on-the-fly when calling * [`find_route`]. * - * [`Score`]: crate::routing::scoring::Score + * [`ScoreLookUp`]: crate::routing::scoring::ScoreLookUp */ public class ScorerAccountingForInFlightHtlcs : CommonBase { internal ScorerAccountingForInFlightHtlcs(object _dummy, long ptr) : base(ptr) { } @@ -23,7 +23,7 @@ public class ScorerAccountingForInFlightHtlcs : CommonBase { /** * Initialize a new `ScorerAccountingForInFlightHtlcs`. */ - public static ScorerAccountingForInFlightHtlcs of(org.ldk.structs.Score scorer, org.ldk.structs.InFlightHtlcs inflight_htlcs) { + public static ScorerAccountingForInFlightHtlcs of(org.ldk.structs.ScoreLookUp scorer, org.ldk.structs.InFlightHtlcs inflight_htlcs) { long ret = bindings.ScorerAccountingForInFlightHtlcs_new(scorer.ptr, inflight_htlcs == null ? 0 : inflight_htlcs.ptr); GC.KeepAlive(scorer); GC.KeepAlive(inflight_htlcs); @@ -36,23 +36,14 @@ public class ScorerAccountingForInFlightHtlcs : CommonBase { } /** - * Serialize the ScorerAccountingForInFlightHtlcs object into a byte array which can be read by ScorerAccountingForInFlightHtlcs_read + * Constructs a new ScoreLookUp which calls the relevant methods on this_arg. + * This copies the `inner` pointer in this_arg and thus the returned ScoreLookUp must be freed before this_arg is */ - public byte[] write() { - byte[] ret = bindings.ScorerAccountingForInFlightHtlcs_write(this.ptr); - GC.KeepAlive(this); - return ret; - } - - /** - * Constructs a new Score which calls the relevant methods on this_arg. - * This copies the `inner` pointer in this_arg and thus the returned Score must be freed before this_arg is - */ - public Score as_Score() { - long ret = bindings.ScorerAccountingForInFlightHtlcs_as_Score(this.ptr); + public ScoreLookUp as_ScoreLookUp() { + long ret = bindings.ScorerAccountingForInFlightHtlcs_as_ScoreLookUp(this.ptr); GC.KeepAlive(this); if (ret >= 0 && ret <= 4096) { return null; } - Score ret_hu_conv = new Score(null, ret); + ScoreLookUp ret_hu_conv = new ScoreLookUp(null, ret); if (ret_hu_conv != null) { ret_hu_conv.ptrs_to.AddLast(this); }; return ret_hu_conv; }