Fixup iterator method (#16357)
This commit is contained in:
@ -2055,7 +2055,7 @@ impl Blockstore {
|
|||||||
);
|
);
|
||||||
let confirmed_unrooted_slots: Vec<_> =
|
let confirmed_unrooted_slots: Vec<_> =
|
||||||
AncestorIterator::new_inclusive(highest_confirmed_slot, self)
|
AncestorIterator::new_inclusive(highest_confirmed_slot, self)
|
||||||
.filter(|&slot| slot > self.last_root())
|
.take_while(|&slot| slot > self.last_root())
|
||||||
.collect();
|
.collect();
|
||||||
self.get_transaction_with_status(signature, &confirmed_unrooted_slots)
|
self.get_transaction_with_status(signature, &confirmed_unrooted_slots)
|
||||||
}
|
}
|
||||||
@ -2214,7 +2214,7 @@ impl Blockstore {
|
|||||||
)
|
)
|
||||||
);
|
);
|
||||||
let confirmed_unrooted_slots: Vec<_> = AncestorIterator::new_inclusive(highest_slot, self)
|
let confirmed_unrooted_slots: Vec<_> = AncestorIterator::new_inclusive(highest_slot, self)
|
||||||
.filter(|&slot| slot > self.last_root())
|
.take_while(|&slot| slot > self.last_root())
|
||||||
.collect();
|
.collect();
|
||||||
|
|
||||||
// Figure the `slot` to start listing signatures at, based on the ledger location of the
|
// Figure the `slot` to start listing signatures at, based on the ledger location of the
|
||||||
|
Reference in New Issue
Block a user