X-Git-Url: http://git.bitcoin.ninja/index.cgi?a=blobdiff_plain;f=c_sharp%2Fsrc%2Forg%2Fldk%2Fstructs%2FRouteHintHop.cs;fp=c_sharp%2Fsrc%2Forg%2Fldk%2Fstructs%2FRouteHintHop.cs;h=f8f17a9c4d88e3e973a0f8925f814a903f0962a5;hb=c6777737ea14e7814b0fa7d6fe16536f31d4a82b;hp=98bd1074f15ecb068df7e2efd0922b5b9bbe98df;hpb=ee72c84d4bf9e2404e02fe20155efb502ceaee1b;p=ldk-java diff --git a/c_sharp/src/org/ldk/structs/RouteHintHop.cs b/c_sharp/src/org/ldk/structs/RouteHintHop.cs index 98bd1074..f8f17a9c 100644 --- a/c_sharp/src/org/ldk/structs/RouteHintHop.cs +++ b/c_sharp/src/org/ldk/structs/RouteHintHop.cs @@ -110,6 +110,7 @@ public class RouteHintHop : CommonBase { bindings.RouteHintHop_set_htlc_minimum_msat(this.ptr, val.ptr); GC.KeepAlive(this); GC.KeepAlive(val); + if (this != null) { this.ptrs_to.AddLast(val); }; } /** @@ -131,6 +132,7 @@ public class RouteHintHop : CommonBase { bindings.RouteHintHop_set_htlc_maximum_msat(this.ptr, val.ptr); GC.KeepAlive(this); GC.KeepAlive(val); + if (this != null) { this.ptrs_to.AddLast(val); }; } /** @@ -148,6 +150,8 @@ public class RouteHintHop : CommonBase { org.ldk.structs.RouteHintHop ret_hu_conv = null; if (ret < 0 || ret > 4096) { ret_hu_conv = new org.ldk.structs.RouteHintHop(null, ret); } if (ret_hu_conv != null) { ret_hu_conv.ptrs_to.AddLast(ret_hu_conv); }; if (ret_hu_conv != null) { ret_hu_conv.ptrs_to.AddLast(fees_arg); }; + if (ret_hu_conv != null) { ret_hu_conv.ptrs_to.AddLast(htlc_minimum_msat_arg); }; + if (ret_hu_conv != null) { ret_hu_conv.ptrs_to.AddLast(htlc_maximum_msat_arg); }; return ret_hu_conv; } @@ -170,7 +174,7 @@ public class RouteHintHop : CommonBase { } /** - * Checks if two RouteHintHops contain equal inner contents. + * Generates a non-cryptographic 64-bit hash of the RouteHintHop. */ public long hash() { long ret = bindings.RouteHintHop_hash(this.ptr);