Skip to content

Commit b55eec7

Browse files
committed
Provide the same docs in ChangeDestinationSource as the sync one
1 parent c311447 commit b55eec7

File tree

1 file changed

+3
-0
lines changed

1 file changed

+3
-0
lines changed

lightning/src/sign/mod.rs

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1071,6 +1071,9 @@ pub trait ChangeDestinationSource {
10711071

10721072
/// A synchronous helper trait that describes an on-chain wallet capable of returning a (change) destination script.
10731073
pub trait ChangeDestinationSourceSync {
1074+
/// Returns a script pubkey which can be used as a change destination for
1075+
/// [`OutputSpender::spend_spendable_outputs`].
1076+
///
10741077
/// This method should return a different value each time it is called, to avoid linking
10751078
/// on-chain funds controlled to the same user.
10761079
fn get_change_destination_script(&self) -> Result<ScriptBuf, ()>;

0 commit comments

Comments
 (0)