From 5c35f72cea1d54caf429bed2bbce2744cec67dcb Mon Sep 17 00:00:00 2001 From: arya2 Date: Thu, 19 Oct 2023 15:29:44 -0400 Subject: [PATCH] adds reverse arg to new zs_range_iter calls --- zebra-state/src/service/finalized_state/zebra_db/chain.rs | 2 +- .../src/service/finalized_state/zebra_db/shielded.rs | 2 +- .../src/service/finalized_state/zebra_db/transparent.rs | 6 +++++- 3 files changed, 7 insertions(+), 3 deletions(-) diff --git a/zebra-state/src/service/finalized_state/zebra_db/chain.rs b/zebra-state/src/service/finalized_state/zebra_db/chain.rs index 49649c6c6b9..925762ce476 100644 --- a/zebra-state/src/service/finalized_state/zebra_db/chain.rs +++ b/zebra-state/src/service/finalized_state/zebra_db/chain.rs @@ -75,7 +75,7 @@ impl ZebraDb { ) -> impl Iterator)> + '_ { 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 diff --git a/zebra-state/src/service/finalized_state/zebra_db/shielded.rs b/zebra-state/src/service/finalized_state/zebra_db/shielded.rs index 416565414d2..de7515858f1 100644 --- a/zebra-state/src/service/finalized_state/zebra_db/shielded.rs +++ b/zebra-state/src/service/finalized_state/zebra_db/shielded.rs @@ -153,7 +153,7 @@ impl ZebraDb { &self, ) -> impl Iterator)> + '_ { 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 diff --git a/zebra-state/src/service/finalized_state/zebra_db/transparent.rs b/zebra-state/src/service/finalized_state/zebra_db/transparent.rs index 2e8d6c3980a..a9caed75c46 100644 --- a/zebra-state/src/service/finalized_state/zebra_db/transparent.rs +++ b/zebra-state/src/service/finalized_state/zebra_db/transparent.rs @@ -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() }