@@ -737,7 +737,7 @@ impl<D> Wallet<D> {
737737 }
738738
739739 /// Return the list of unspent outputs of this wallet
740- pub fn list_unspent ( & self ) -> impl Iterator < Item = LocalUtxo > + ' _ {
740+ pub fn list_unspent ( & self ) -> impl Iterator < Item = LocalOutput > + ' _ {
741741 self . indexed_graph
742742 . graph ( )
743743 . filter_chain_unspents (
@@ -786,7 +786,7 @@ impl<D> Wallet<D> {
786786
787787 /// Returns the utxo owned by this wallet corresponding to `outpoint` if it exists in the
788788 /// wallet's database.
789- pub fn get_utxo ( & self , op : OutPoint ) -> Option < LocalUtxo > {
789+ pub fn get_utxo ( & self , op : OutPoint ) -> Option < LocalOutput > {
790790 let ( & spk_i, _) = self . indexed_graph . index . txout ( op) ?;
791791 self . indexed_graph
792792 . graph ( )
@@ -1617,7 +1617,7 @@ impl<D> Wallet<D> {
16171617 . max_satisfaction_weight ( )
16181618 . unwrap ( ) ;
16191619 WeightedUtxo {
1620- utxo : Utxo :: Local ( LocalUtxo {
1620+ utxo : Utxo :: Local ( LocalOutput {
16211621 outpoint : txin. previous_output ,
16221622 txout : txout. clone ( ) ,
16231623 keychain,
@@ -1944,7 +1944,7 @@ impl<D> Wallet<D> {
19441944 descriptor. at_derivation_index ( child) . ok ( )
19451945 }
19461946
1947- fn get_available_utxos ( & self ) -> Vec < ( LocalUtxo , usize ) > {
1947+ fn get_available_utxos ( & self ) -> Vec < ( LocalOutput , usize ) > {
19481948 self . list_unspent ( )
19491949 . map ( |utxo| {
19501950 let keychain = utxo. keychain ;
@@ -2141,7 +2141,7 @@ impl<D> Wallet<D> {
21412141 /// get the corresponding PSBT Input for a LocalUtxo
21422142 pub fn get_psbt_input (
21432143 & self ,
2144- utxo : LocalUtxo ,
2144+ utxo : LocalOutput ,
21452145 sighash_type : Option < psbt:: PsbtSighashType > ,
21462146 only_witness_utxo : bool ,
21472147 ) -> Result < psbt:: Input , CreateTxError < D :: WriteError > >
@@ -2352,8 +2352,8 @@ fn new_local_utxo(
23522352 keychain : KeychainKind ,
23532353 derivation_index : u32 ,
23542354 full_txo : FullTxOut < ConfirmationTimeHeightAnchor > ,
2355- ) -> LocalUtxo {
2356- LocalUtxo {
2355+ ) -> LocalOutput {
2356+ LocalOutput {
23572357 outpoint : full_txo. outpoint ,
23582358 txout : full_txo. txout ,
23592359 is_spent : full_txo. spent_by . is_some ( ) ,
0 commit comments