Skip to content

Commit fa44454

Browse files
committed
Add Wallet::is_mine
Checks whether a script is owned by the node wallet.
1 parent b7c4862 commit fa44454

1 file changed

Lines changed: 4 additions & 0 deletions

File tree

src/wallet.rs

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -111,6 +111,10 @@ where
111111
res
112112
}
113113

114+
pub(crate) fn is_mine(&self, script: &ScriptBuf) -> Result<bool, Error> {
115+
Ok(self.inner.lock().unwrap().is_mine(script)?)
116+
}
117+
114118
pub(crate) fn create_funding_transaction(
115119
&self, output_script: ScriptBuf, value_sats: u64, confirmation_target: ConfirmationTarget,
116120
locktime: LockTime,

0 commit comments

Comments
 (0)