X-Git-Url: http://git.bitcoin.ninja/index.cgi?a=blobdiff_plain;f=src%2Fmain%2Fjava%2Forg%2Fldk%2Fstructs%2FOffer.java;h=5a9827909b0d1c0e9a999793c5ef28711e45b87a;hb=2bb592fb946e316dba9f4d1123f8ac72ff4e9bf8;hp=cbda12ee34651a7abd16887e851877525977af6a;hpb=519dc944de5b88f95975140a13fbc6d77dd15a95;p=ldk-java diff --git a/src/main/java/org/ldk/structs/Offer.java b/src/main/java/org/ldk/structs/Offer.java index cbda12ee..5a982790 100644 --- a/src/main/java/org/ldk/structs/Offer.java +++ b/src/main/java/org/ldk/structs/Offer.java @@ -202,6 +202,16 @@ public class Offer extends CommonBase { return ret; } + /** + * Whether the offer has expired given the duration since the Unix epoch. + */ + public boolean is_expired_no_std(long duration_since_epoch) { + boolean ret = bindings.Offer_is_expired_no_std(this.ptr, duration_since_epoch); + Reference.reachabilityFence(this); + Reference.reachabilityFence(duration_since_epoch); + return ret; + } + /** * Returns whether the given quantity is valid for the offer. */