Skip to content

Commit 77178c6

Browse files
committed
Clarify docs on ShutdownScript::new_witness_program somewhat
This is especially important for C or other language bindings clients as the `version` field may be exported as a `u8`.
1 parent 265f6c9 commit 77178c6

File tree

1 file changed

+3
-1
lines changed

1 file changed

+3
-1
lines changed

lightning/src/ln/script.rs

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -86,7 +86,9 @@ impl ShutdownScript {
8686
Self(ShutdownScriptImpl::Bolt2(Script::new_v0_wsh(script_hash)))
8787
}
8888

89-
/// Generates a P2WSH script pubkey from the given segwit version and program.
89+
/// Generates a witness script pubkey from the given segwit version and program.
90+
///
91+
/// Note for version-zero witness scripts you must use [`new_p2wpkh`] or [`new_p2wsh`] instead.
9092
///
9193
/// # Errors
9294
///

0 commit comments

Comments
 (0)