projects
/
rust-lightning
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
EventHandler for applying NetworkUpdate
[rust-lightning]
/
lightning
/
src
/
ln
/
script.rs
diff --git
a/lightning/src/ln/script.rs
b/lightning/src/ln/script.rs
index 3abb334ce478878d154f98b618df1c6ea6e1affe..4e81d76ad670d18b2c8b172d4acd94ea62c64607 100644
(file)
--- a/
lightning/src/ln/script.rs
+++ b/
lightning/src/ln/script.rs
@@
-86,7
+86,10
@@
impl ShutdownScript {
Self(ShutdownScriptImpl::Bolt2(Script::new_v0_wsh(script_hash)))
}
Self(ShutdownScriptImpl::Bolt2(Script::new_v0_wsh(script_hash)))
}
- /// 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
///
///
/// # Errors
///