Skip to content

Commit f0190ee

Browse files
refactor: create KeychainTxGraph type alias
1 parent 2cc0a64 commit f0190ee

1 file changed

Lines changed: 4 additions & 1 deletion

File tree

src/wallet/mod.rs

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -84,6 +84,9 @@ pub use persisted::*;
8484
pub use utils::IsDust;
8585
pub use utils::TxDetails;
8686

87+
type KeychainTxGraph<KeychainKind> =
88+
IndexedTxGraph<ConfirmationBlockTime, KeychainTxOutIndex<KeychainKind>>;
89+
8790
/// A Bitcoin wallet
8891
///
8992
/// The `Wallet` acts as a way of coherently interfacing with output descriptors and related
@@ -106,7 +109,7 @@ pub struct Wallet {
106109
signers: Arc<SignersContainer>,
107110
change_signers: Arc<SignersContainer>,
108111
chain: LocalChain,
109-
tx_graph: IndexedTxGraph<ConfirmationBlockTime, KeychainTxOutIndex<KeychainKind>>,
112+
tx_graph: KeychainTxGraph<KeychainKind>,
110113
stage: ChangeSet,
111114
network: Network,
112115
secp: SecpCtx,

0 commit comments

Comments
 (0)