X-Git-Url: http://git.bitcoin.ninja/index.cgi?a=blobdiff_plain;f=src%2Fmain%2Fjava%2Forg%2Fldk%2Fstructs%2FRefund.java;h=2479eb9b2cb1e32a9351ac923428d06238eaa21e;hb=2bb592fb946e316dba9f4d1123f8ac72ff4e9bf8;hp=f31b52dff25cd3199aff81107bd2882bffece53e;hpb=7811d2191440c55034e1abfbf3be442d4b25481b;p=ldk-java diff --git a/src/main/java/org/ldk/structs/Refund.java b/src/main/java/org/ldk/structs/Refund.java index f31b52df..2479eb9b 100644 --- a/src/main/java/org/ldk/structs/Refund.java +++ b/src/main/java/org/ldk/structs/Refund.java @@ -81,6 +81,16 @@ public class Refund extends CommonBase { return ret; } + /** + * Whether the refund has expired given the duration since the Unix epoch. + */ + public boolean is_expired_no_std(long duration_since_epoch) { + boolean ret = bindings.Refund_is_expired_no_std(this.ptr, duration_since_epoch); + Reference.reachabilityFence(this); + Reference.reachabilityFence(duration_since_epoch); + return ret; + } + /** * The issuer of the refund, possibly beginning with `user@domain` or `domain`. Intended to be * displayed to the user but with the caveat that it has not been verified in any way.