Skip to content

Commit

Permalink
style: is_wallet_utxo() -> can_unlock()
Browse files Browse the repository at this point in the history
  • Loading branch information
dan-da committed Jul 11, 2024
1 parent f527d91 commit d7ad64d
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/models/state/wallet/wallet_state.rs
Original file line number Diff line number Diff line change
Expand Up @@ -288,7 +288,7 @@ impl WalletState {

// returns true if the utxo can be unlocked by one of the
// known wallet keys.
pub fn is_wallet_utxo(&self, utxo: &Utxo) -> bool {
pub fn can_unlock(&self, utxo: &Utxo) -> bool {
self.get_known_generation_spending_keys()
.iter()
.map(|k| k.to_address().lock_script().hash())
Expand Down

0 comments on commit d7ad64d

Please sign in to comment.