Skip to content

Commit

Permalink
fix for terminal keys
Browse files Browse the repository at this point in the history
  • Loading branch information
QuantumExplorer committed Apr 26, 2024
1 parent 351b75f commit 8c9e1c4
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions merk/src/proofs/query/mod.rs
Original file line number Diff line number Diff line change
Expand Up @@ -198,7 +198,7 @@ impl Query {
path.extend(subquery_path.iter().cloned());
// recurse onto the lower level
let added_here =
subquery.terminal_keys(path, max_results - current_len, result)?;
subquery.terminal_keys(path, max_results, result)?;
added += added_here;
current_len += added_here;
} else {
Expand Down Expand Up @@ -266,7 +266,7 @@ impl Query {
path.extend(subquery_path.iter().cloned());
// recurse onto the lower level
let added_here =
subquery.terminal_keys(path, max_results - current_len, result)?;
subquery.terminal_keys(path, max_results, result)?;
added += added_here;
current_len += added_here;
} else {
Expand Down Expand Up @@ -298,7 +298,7 @@ impl Query {
path.push(key);
// recurse onto the lower level
let added_here =
subquery.terminal_keys(path, max_results - current_len, result)?;
subquery.terminal_keys(path, max_results, result)?;
added += added_here;
current_len += added_here;
} else {
Expand Down

0 comments on commit 8c9e1c4

Please sign in to comment.