[bdk_chain_redesign] Add tests for TxGraph::relevant_heights
This commit is contained in:
@@ -602,7 +602,7 @@ impl<A: Clone + Ord> TxGraph<A> {
|
||||
|
||||
impl<A: Anchor> TxGraph<A> {
|
||||
/// Get all heights that are relevant to the graph.
|
||||
pub fn relevant_heights(&self) -> impl Iterator<Item = u32> + '_ {
|
||||
pub fn relevant_heights(&self) -> impl DoubleEndedIterator<Item = u32> + '_ {
|
||||
let mut visited = HashSet::new();
|
||||
self.anchors
|
||||
.iter()
|
||||
|
||||
Reference in New Issue
Block a user