Skip to content

Commit

Permalink
improved distribution test
Browse files Browse the repository at this point in the history
  • Loading branch information
QuantumExplorer committed Jan 15, 2025
1 parent 9b13a0f commit ddcaa5b
Show file tree
Hide file tree
Showing 5 changed files with 742 additions and 17 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -65,10 +65,10 @@ impl<C> Platform<C> {
transaction,
platform_version,
)?;
}

if previous_protocol_version < 6 && platform_version.protocol_version >= 6 {
} else if previous_protocol_version < 6 && platform_version.protocol_version >= 6 {
self.transition_to_version_6(block_info, transaction, platform_version)?;
} else if previous_protocol_version < 8 && platform_version.protocol_version >= 8 {
self.transition_to_version_8(block_info, transaction, platform_version)?;
}

Ok(())
Expand Down Expand Up @@ -140,7 +140,7 @@ impl<C> Platform<C> {

query.default_subquery_branch.subquery = Some(sub_query.into());

PathQuery {
let current_votes_path_query = PathQuery {
path,
query: SizedQuery {
query,
Expand All @@ -150,7 +150,7 @@ impl<C> Platform<C> {
};

let Ok((query_result_elements, _)) = self.drive.grove_get_path_query(
&path_query,
&current_votes_path_query,
Some(transaction),
QueryResultType::QueryElementResultType,
&mut vec![],
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -783,7 +783,7 @@ mod tests {
chain_lock: ChainLockConfig::default_100_67(),
instant_lock: InstantLockConfig::default_100_67(),
execution: ExecutionConfig {
verify_sum_trees: true,
verify_sum_trees: false, //faster without this
epoch_time_length_s: 1576800,
..Default::default()
},
Expand Down Expand Up @@ -1369,7 +1369,7 @@ mod tests {
chain_lock: ChainLockConfig::default_100_67(),
instant_lock: InstantLockConfig::default_100_67(),
execution: ExecutionConfig {
verify_sum_trees: true,
verify_sum_trees: false,
epoch_time_length_s: 1576800,
..Default::default()
},
Expand Down
Loading

0 comments on commit ddcaa5b

Please sign in to comment.