From f442214447f96bc4c883ad492719ca650013c513 Mon Sep 17 00:00:00 2001 From: arya2 Date: Wed, 11 Oct 2023 19:53:01 -0400 Subject: [PATCH] uses u16::MAX instead of usize::MAX --- .../finalized_state/zebra_db/transparent.rs | 15 ++++++++------- 1 file changed, 8 insertions(+), 7 deletions(-) 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 6d8b616ae6e..5e7b8b131c9 100644 --- a/zebra-state/src/service/finalized_state/zebra_db/transparent.rs +++ b/zebra-state/src/service/finalized_state/zebra_db/transparent.rs @@ -244,15 +244,16 @@ impl ZebraDb { let last_transaction_location = AddressTransaction::new( address_location, - TransactionLocation::from_usize(*query_height_range.end(), usize::MAX), + TransactionLocation::from_usize(*query_height_range.end(), u16::MAX.into()), ); - self.zs_range_iter( - &tx_loc_by_transparent_addr_loc, - &transaction_location..=&last_transaction_location, - ) - .map(|(tx_loc, ())| tx_loc) - .collect() + self.db + .zs_range_iter( + &tx_loc_by_transparent_addr_loc, + &transaction_location..=&last_transaction_location, + ) + .map(|(tx_loc, ())| tx_loc) + .collect() } // Address index queries