Fixup iterator method (#16357) (#16358)

(cherry picked from commit 1a13d22984)

Co-authored-by: Tyera Eulberg <teulberg@gmail.com>
This commit is contained in:
mergify[bot]
2021-04-05 00:46:47 +00:00
committed by GitHub
parent aca3534e89
commit 9b04b634bd

View File

@ -2055,7 +2055,7 @@ impl Blockstore {
);
let confirmed_unrooted_slots: Vec<_> =
AncestorIterator::new_inclusive(highest_confirmed_slot, self)
.filter(|&slot| slot > self.last_root())
.take_while(|&slot| slot > self.last_root())
.collect();
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)
.filter(|&slot| slot > self.last_root())
.take_while(|&slot| slot > self.last_root())
.collect();
// Figure the `slot` to start listing signatures at, based on the ledger location of the