X-Git-Url: http://git.bitcoin.ninja/index.cgi?a=blobdiff_plain;f=src%2Fmain%2Fjava%2Forg%2Fldk%2Fstructs%2FEffectiveCapacity.java;h=74c59b732adcd6a5671c024bf0c50be36766cb2d;hb=09cf977593c69de53e558d5221ccd59b45c5c53d;hp=7357afd1f2d3eeaf591086a41c31105173418a5e;hpb=8b1d66cd42ff365741d15affe4d945f856fa3ee8;p=ldk-java diff --git a/src/main/java/org/ldk/structs/EffectiveCapacity.java b/src/main/java/org/ldk/structs/EffectiveCapacity.java index 7357afd1..74c59b73 100644 --- a/src/main/java/org/ldk/structs/EffectiveCapacity.java +++ b/src/main/java/org/ldk/structs/EffectiveCapacity.java @@ -78,9 +78,17 @@ public class EffectiveCapacity extends CommonBase { * The funding amount denominated in millisatoshi. */ public final long capacity_msat; + /** + * The maximum HTLC amount denominated in millisatoshi. + */ + public final org.ldk.structs.Option_u64Z htlc_maximum_msat; private Total(long ptr, bindings.LDKEffectiveCapacity.Total obj) { super(null, ptr); this.capacity_msat = obj.capacity_msat; + long htlc_maximum_msat = obj.htlc_maximum_msat; + org.ldk.structs.Option_u64Z htlc_maximum_msat_hu_conv = org.ldk.structs.Option_u64Z.constr_from_ptr(htlc_maximum_msat); + htlc_maximum_msat_hu_conv.ptrs_to.add(this); + this.htlc_maximum_msat = htlc_maximum_msat_hu_conv; } } /** @@ -146,9 +154,10 @@ public class EffectiveCapacity extends CommonBase { /** * Utility method to constructs a new Total-variant EffectiveCapacity */ - public static EffectiveCapacity total(long capacity_msat) { - long ret = bindings.EffectiveCapacity_total(capacity_msat); + public static EffectiveCapacity total(long capacity_msat, Option_u64Z htlc_maximum_msat) { + long ret = bindings.EffectiveCapacity_total(capacity_msat, htlc_maximum_msat.ptr); Reference.reachabilityFence(capacity_msat); + Reference.reachabilityFence(htlc_maximum_msat); if (ret >= 0 && ret <= 4096) { return null; } org.ldk.structs.EffectiveCapacity ret_hu_conv = org.ldk.structs.EffectiveCapacity.constr_from_ptr(ret); ret_hu_conv.ptrs_to.add(ret_hu_conv);