X-Git-Url: http://git.bitcoin.ninja/index.cgi?a=blobdiff_plain;f=src%2Fmain%2Fjava%2Forg%2Fldk%2Fenums%2FCreationError.java;h=958959cc0861c9db3fb914794c841a394856f88f;hb=1d4aa806117a28f8a5899ed0dc4e9ad7ed117787;hp=f46601b3dcf0086a7f828d98846c1ab6e1c364ae;hpb=6d094e745feaf94c1059555cd1c997965a34bc36;p=ldk-java diff --git a/src/main/java/org/ldk/enums/CreationError.java b/src/main/java/org/ldk/enums/CreationError.java index f46601b3..958959cc 100644 --- a/src/main/java/org/ldk/enums/CreationError.java +++ b/src/main/java/org/ldk/enums/CreationError.java @@ -13,13 +13,20 @@ public enum CreationError { */ LDKCreationError_RouteTooLong, /** - * The unix timestamp of the supplied date is <0 or can't be represented as `SystemTime` + * The Unix timestamp of the supplied date is less than zero or greater than 35-bits */ LDKCreationError_TimestampOutOfBounds, /** - * The supplied expiry time could cause an overflow if added to a `PositiveTimestamp` + * The supplied millisatoshi amount was greater than the total bitcoin supply. */ - LDKCreationError_ExpiryTimeOutOfBounds, + LDKCreationError_InvalidAmount, + /** + * Route hints were required for this invoice and were missing. Applies to + * [phantom invoices]. + * + * [phantom invoices]: crate::utils::create_phantom_invoice + */ + LDKCreationError_MissingRouteHints, ; static native void init(); static { init(); } } \ No newline at end of file