Skip to content

Commit

Permalink
adds reverse arg to new zs_range_iter calls
Browse files Browse the repository at this point in the history
  • Loading branch information
arya2 committed Oct 19, 2023
1 parent 8c28c58 commit 5c35f72
Show file tree
Hide file tree
Showing 3 changed files with 7 additions and 3 deletions.
2 changes: 1 addition & 1 deletion zebra-state/src/service/finalized_state/zebra_db/chain.rs
Original file line number Diff line number Diff line change
Expand Up @@ -75,7 +75,7 @@ impl ZebraDb {
) -> impl Iterator<Item = (RawBytes, Arc<HistoryTree>)> + '_ {
let history_tree_cf = self.db.cf_handle("history_tree").unwrap();

self.db.zs_range_iter(&history_tree_cf, ..)
self.db.zs_range_iter(&history_tree_cf, .., false)
}

// Value pool methods
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -153,7 +153,7 @@ impl ZebraDb {
&self,
) -> impl Iterator<Item = (RawBytes, Arc<sprout::tree::NoteCommitmentTree>)> + '_ {
let sprout_trees = self.db.cf_handle("sprout_note_commitment_tree").unwrap();
self.db.zs_range_iter(&sprout_trees, ..)
self.db.zs_range_iter(&sprout_trees, .., false)
}

// # Sapling trees
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -241,7 +241,11 @@ impl ZebraDb {
AddressTransaction::address_iterator_range(address_location, query_height_range);

self.db
.zs_range_iter(&tx_loc_by_transparent_addr_loc, transaction_location_range)
.zs_range_iter(
&tx_loc_by_transparent_addr_loc,
transaction_location_range,
false,
)
.map(|(tx_loc, ())| tx_loc)
.collect()
}
Expand Down

0 comments on commit 5c35f72

Please sign in to comment.