From d80ffbe9f9f82c3d5d06c94eea8ed774aabd3c34 Mon Sep 17 00:00:00 2001 From: Matt Corallo Date: Thu, 19 Aug 2021 00:01:04 +0000 Subject: [PATCH] Update auto-generated bindings to latest upstream --- lightning-c-bindings/include/lightning.h | 5 ++++- lightning-c-bindings/src/lightning/ln/script.rs | 5 ++++- 2 files changed, 8 insertions(+), 2 deletions(-) diff --git a/lightning-c-bindings/include/lightning.h b/lightning-c-bindings/include/lightning.h index ea3e972..9529ff7 100644 --- a/lightning-c-bindings/include/lightning.h +++ b/lightning-c-bindings/include/lightning.h @@ -18379,7 +18379,10 @@ MUST_USE_RES struct LDKShutdownScript ShutdownScript_new_p2wpkh(const uint8_t (* MUST_USE_RES struct LDKShutdownScript ShutdownScript_new_p2wsh(const uint8_t (*script_hash)[32]); /** - * Generates a P2WSH script pubkey from the given segwit version and program. + * Generates a witness script pubkey from the given segwit version and program. + * + * Note for version-zero witness scripts you must use [`ShutdownScript::new_p2wpkh`] or + * [`ShutdownScript::new_p2wsh`] instead. * * # Errors * diff --git a/lightning-c-bindings/src/lightning/ln/script.rs b/lightning-c-bindings/src/lightning/ln/script.rs index dcb49dd..9f74a41 100644 --- a/lightning-c-bindings/src/lightning/ln/script.rs +++ b/lightning-c-bindings/src/lightning/ln/script.rs @@ -207,7 +207,10 @@ pub extern "C" fn ShutdownScript_new_p2wsh(script_hash: *const [u8; 32]) -> Shut ShutdownScript { inner: ObjOps::heap_alloc(ret), is_owned: true } } -/// Generates a P2WSH script pubkey from the given segwit version and program. +/// Generates a witness script pubkey from the given segwit version and program. +/// +/// Note for version-zero witness scripts you must use [`ShutdownScript::new_p2wpkh`] or +/// [`ShutdownScript::new_p2wsh`] instead. /// /// # Errors /// -- 2.39.5