From 9fc14901e28378090da8a245b767b44e59a091fa Mon Sep 17 00:00:00 2001 From: teor Date: Wed, 20 Apr 2022 16:22:59 +1000 Subject: [PATCH] Fix up snapshot tests for the new height range API --- .../zebra_db/block/tests/snapshot.rs | 15 ++++++++++----- 1 file changed, 10 insertions(+), 5 deletions(-) diff --git a/zebra-state/src/service/finalized_state/zebra_db/block/tests/snapshot.rs b/zebra-state/src/service/finalized_state/zebra_db/block/tests/snapshot.rs index c2575504db7..0691aa09c02 100644 --- a/zebra-state/src/service/finalized_state/zebra_db/block/tests/snapshot.rs +++ b/zebra-state/src/service/finalized_state/zebra_db/block/tests/snapshot.rs @@ -45,11 +45,14 @@ use zebra_chain::{ }; use crate::{ - service::finalized_state::{ - disk_format::{ - block::TransactionIndex, transparent::OutputLocation, FromDisk, TransactionLocation, + service::{ + finalized_state::{ + disk_format::{ + block::TransactionIndex, transparent::OutputLocation, FromDisk, TransactionLocation, + }, + FinalizedState, }, - FinalizedState, + read::ADDRESS_HEIGHTS_FULL_RANGE, }, Config, }; @@ -495,7 +498,9 @@ fn snapshot_transparent_address_data(state: &FinalizedState, height: u32) { } let mut stored_transaction_locations = Vec::new(); - for transaction_location in state.address_transaction_locations(stored_address_location) { + for transaction_location in + state.address_transaction_locations(stored_address_location, ADDRESS_HEIGHTS_FULL_RANGE) + { assert_eq!( transaction_location.address_location(), stored_address_location