[C#] Update auto-generated C# bindings
[ldk-java] / c_sharp / src / org / ldk / structs / ChannelUsage.cs
index 53dfaa0d1c4de5b84023f8b7469da5afbbac9dc0..8d20c5deb4f045338723da842789e6ce594ae29c 100644 (file)
@@ -7,7 +7,7 @@ namespace org { namespace ldk { namespace structs {
 
 
 /**
- * Proposed use of a channel passed as a parameter to [`Score::channel_penalty_msat`].
+ * Proposed use of a channel passed as a parameter to [`ScoreLookUp::channel_penalty_msat`].
  */
 public class ChannelUsage : CommonBase {
        internal ChannelUsage(object _dummy, long ptr) : base(ptr) { }
@@ -72,6 +72,7 @@ public class ChannelUsage : CommonBase {
                bindings.ChannelUsage_set_effective_capacity(this.ptr, val.ptr);
                GC.KeepAlive(this);
                GC.KeepAlive(val);
+               if (this != null) { this.ptrs_to.AddLast(val); };
        }
 
        /**
@@ -85,6 +86,7 @@ public class ChannelUsage : CommonBase {
                if (ret >= 0 && ret <= 4096) { return null; }
                org.ldk.structs.ChannelUsage ret_hu_conv = null; if (ret < 0 || ret > 4096) { ret_hu_conv = new org.ldk.structs.ChannelUsage(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(effective_capacity_arg); };
                return ret_hu_conv;
        }