Skip to content

Commit 366dbbe

Browse files
committed
feat: add getters for Wallet fields
1 parent 8b3062f commit 366dbbe

File tree

1 file changed

+15
-0
lines changed

1 file changed

+15
-0
lines changed

src/wallet/mod.rs

Lines changed: 15 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -554,6 +554,21 @@ where
554554
Some(&self.stage)
555555
}
556556
}
557+
558+
/// Get a reference to the inner [`TxGraph`].
559+
pub fn tx_graph(&self) -> &TxGraph<ConfirmationBlockTime> {
560+
self.tx_graph.graph()
561+
}
562+
563+
/// Get a reference to the inner [`KeychainTxOutIndex`].
564+
pub fn index(&self) -> &KeychainTxOutIndex<K> {
565+
&self.tx_graph.index
566+
}
567+
568+
/// Get a reference to the inner [`LocalChain`].
569+
pub fn local_chain(&self) -> &LocalChain {
570+
&self.chain
571+
}
557572
}
558573

559574
// TODO: replace with `PersistedWallet`

0 commit comments

Comments
 (0)