X-Git-Url: http://git.bitcoin.ninja/index.cgi?a=blobdiff_plain;f=src%2Fmain%2Fjava%2Forg%2Fldk%2Fstructs%2FAPIError.java;fp=src%2Fmain%2Fjava%2Forg%2Fldk%2Fstructs%2FAPIError.java;h=4bb9968bd8802b9c43b69421634c466979c7178e;hb=eab9331afd014558a982441138e222999a9955d1;hp=2ff705921af04e003fa6bd1b4b0904c25de3092b;hpb=397201c278ded558e45d406967f153770784ff88;p=ldk-java diff --git a/src/main/java/org/ldk/structs/APIError.java b/src/main/java/org/ldk/structs/APIError.java index 2ff70592..4bb9968b 100644 --- a/src/main/java/org/ldk/structs/APIError.java +++ b/src/main/java/org/ldk/structs/APIError.java @@ -122,13 +122,13 @@ public class APIError extends CommonBase { } } /** - * [`KeysInterface::get_shutdown_scriptpubkey`] returned a shutdown scriptpubkey incompatible + * [`SignerProvider::get_shutdown_scriptpubkey`] returned a shutdown scriptpubkey incompatible * with the channel counterparty as negotiated in [`InitFeatures`]. * * Using a SegWit v0 script should resolve this issue. If you cannot, you won't be able to open * a channel or cooperatively close one with this peer (and will have to force-close instead). * - * [`KeysInterface::get_shutdown_scriptpubkey`]: crate::chain::keysinterface::KeysInterface::get_shutdown_scriptpubkey + * [`SignerProvider::get_shutdown_scriptpubkey`]: crate::chain::keysinterface::SignerProvider::get_shutdown_scriptpubkey * [`InitFeatures`]: crate::ln::features::InitFeatures */ public final static class IncompatibleShutdownScript extends APIError { @@ -250,4 +250,13 @@ public class APIError extends CommonBase { if (!(o instanceof APIError)) return false; return this.eq((APIError)o); } + /** + * Serialize the APIError object into a byte array which can be read by APIError_read + */ + public byte[] write() { + byte[] ret = bindings.APIError_write(this.ptr); + Reference.reachabilityFence(this); + return ret; + } + }