Skip to content

Commit

Permalink
uses u16::MAX instead of usize::MAX
Browse files Browse the repository at this point in the history
  • Loading branch information
arya2 committed Oct 11, 2023
1 parent 24fd0be commit f442214
Showing 1 changed file with 8 additions and 7 deletions.
15 changes: 8 additions & 7 deletions zebra-state/src/service/finalized_state/zebra_db/transparent.rs
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down

0 comments on commit f442214

Please sign in to comment.