X-Git-Url: http://git.bitcoin.ninja/index.cgi?p=ldk-java;a=blobdiff_plain;f=src%2Fmain%2Fjava%2Forg%2Fldk%2Fstructs%2FHTLCDescriptor.java;h=b80c2dce4024483d7bcc9901f79d704d03daf063;hp=50fddf0c76d71273a5a1a881fddfca842be4532f;hb=2f0e19ab23f28c5c1bc11dc6bff24e156da3ec01;hpb=ab07d4394be144b5e7eb123655031dba5349b849 diff --git a/src/main/java/org/ldk/structs/HTLCDescriptor.java b/src/main/java/org/ldk/structs/HTLCDescriptor.java index 50fddf0c..b80c2dce 100644 --- a/src/main/java/org/ldk/structs/HTLCDescriptor.java +++ b/src/main/java/org/ldk/structs/HTLCDescriptor.java @@ -86,6 +86,28 @@ public class HTLCDescriptor extends CommonBase { Reference.reachabilityFence(val); } + /** + * The feerate to use on the HTLC claiming transaction. This is always `0` for HTLCs + * originating from a channel supporting anchor outputs, otherwise it is the channel's + * negotiated feerate at the time the commitment transaction was built. + */ + public int get_feerate_per_kw() { + int ret = bindings.HTLCDescriptor_get_feerate_per_kw(this.ptr); + Reference.reachabilityFence(this); + return ret; + } + + /** + * The feerate to use on the HTLC claiming transaction. This is always `0` for HTLCs + * originating from a channel supporting anchor outputs, otherwise it is the channel's + * negotiated feerate at the time the commitment transaction was built. + */ + public void set_feerate_per_kw(int val) { + bindings.HTLCDescriptor_set_feerate_per_kw(this.ptr, val); + Reference.reachabilityFence(this); + Reference.reachabilityFence(val); + } + /** * The details of the HTLC as it appears in the commitment transaction. */