Skip to content

Commit

Permalink
Fix up snapshot tests for the new height range API
Browse files Browse the repository at this point in the history
  • Loading branch information
teor2345 committed Apr 20, 2022
1 parent 5fa6f39 commit 9fc1490
Showing 1 changed file with 10 additions and 5 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -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,
};
Expand Down Expand Up @@ -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
Expand Down

0 comments on commit 9fc1490

Please sign in to comment.