X-Git-Url: http://git.bitcoin.ninja/index.cgi?a=blobdiff_plain;f=src%2Fmain%2Fjava%2Forg%2Fldk%2Fstructs%2FUnsignedChannelUpdate.java;h=1d3f2d721f09c09821583500a6878f43489ed1f4;hb=2a8741cb87eb2b82381a6220a98f80f741147837;hp=8ef49b9eca8e92b2e5345761dd5e5ab46e438f64;hpb=afb20259bc2191ba7525fe75cd48a49d63dcc2c5;p=ldk-java diff --git a/src/main/java/org/ldk/structs/UnsignedChannelUpdate.java b/src/main/java/org/ldk/structs/UnsignedChannelUpdate.java index 8ef49b9e..1d3f2d72 100644 --- a/src/main/java/org/ldk/structs/UnsignedChannelUpdate.java +++ b/src/main/java/org/ldk/structs/UnsignedChannelUpdate.java @@ -178,6 +178,17 @@ public class UnsignedChannelUpdate extends CommonBase { Reference.reachabilityFence(val); } + /** + * Excess data which was signed as a part of the message which we do not (yet) understand how + * to decode. This is stored to ensure forward-compatibility as new fields are added to the + * lightning gossip + */ + public void set_excess_data(byte[] val) { + bindings.UnsignedChannelUpdate_set_excess_data(this.ptr, val); + Reference.reachabilityFence(this); + Reference.reachabilityFence(val); + } + long clone_ptr() { long ret = bindings.UnsignedChannelUpdate_clone_ptr(this.ptr); Reference.reachabilityFence(this); @@ -191,7 +202,7 @@ public class UnsignedChannelUpdate extends CommonBase { long ret = bindings.UnsignedChannelUpdate_clone(this.ptr); Reference.reachabilityFence(this); if (ret >= 0 && ret <= 4096) { return null; } - UnsignedChannelUpdate ret_hu_conv = null; if (ret < 0 || ret > 4096) { ret_hu_conv = new UnsignedChannelUpdate(null, ret); } + org.ldk.structs.UnsignedChannelUpdate ret_hu_conv = null; if (ret < 0 || ret > 4096) { ret_hu_conv = new org.ldk.structs.UnsignedChannelUpdate(null, ret); } ret_hu_conv.ptrs_to.add(this); return ret_hu_conv; }