Skip to content

Commit a831a1e

Browse files
refactor: create KeychainTxGraph type alias
1 parent 5988212 commit a831a1e

1 file changed

Lines changed: 3 additions & 1 deletion

File tree

src/wallet/mod.rs

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

87+
type KeychainTxGraph<KeychainKind> = IndexedTxGraph<ConfirmationBlockTime, KeychainTxOutIndex<KeychainKind>>;
88+
8789
/// A Bitcoin wallet
8890
///
8991
/// The `Wallet` acts as a way of coherently interfacing with output descriptors and related
@@ -106,7 +108,7 @@ pub struct Wallet {
106108
signers: Arc<SignersContainer>,
107109
change_signers: Arc<SignersContainer>,
108110
chain: LocalChain,
109-
tx_graph: IndexedTxGraph<ConfirmationBlockTime, KeychainTxOutIndex<KeychainKind>>,
111+
tx_graph: KeychainTxGraph<KeychainKind>,
110112
stage: ChangeSet,
111113
network: Network,
112114
secp: SecpCtx,

0 commit comments

Comments
 (0)