Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

fix: rename variables and fix typos in tables.rs, execution.rs, and mdbx code #14148

Merged
merged 7 commits into from
Feb 3, 2025
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
8 changes: 4 additions & 4 deletions crates/cli/commands/src/test_vectors/tables.rs
Original file line number Diff line number Diff line change
Expand Up @@ -124,19 +124,19 @@ where
// We want to control our repeated keys
let mut seen_keys = HashSet::new();

let strat_values = proptest::collection::vec(arb::<T::Value>(), 100..300).no_shrink().boxed();
let start_values = proptest::collection::vec(arb::<T::Value>(), 100..300).no_shrink().boxed();

let strat_keys = arb::<T::Key>().no_shrink().boxed();
let start_keys = arb::<T::Key>().no_shrink().boxed();

while rows.len() < per_table {
let key: T::Key = strat_keys.new_tree(runner).map_err(|e| eyre::eyre!("{e}"))?.current();
let key: T::Key = start_keys.new_tree(runner).map_err(|e| eyre::eyre!("{e}"))?.current();

if !seen_keys.insert(key.clone()) {
continue
}

let mut values: Vec<T::Value> =
strat_values.new_tree(runner).map_err(|e| eyre::eyre!("{e}"))?.current();
start_values.new_tree(runner).map_err(|e| eyre::eyre!("{e}"))?.current();

values.sort();

Expand Down
2 changes: 1 addition & 1 deletion crates/stages/stages/src/stages/execution.rs
Original file line number Diff line number Diff line change
Expand Up @@ -181,7 +181,7 @@ where
where
Provider: StaticFileProviderFactory + DBProvider + BlockReader + HeaderProvider,
{
// If thre's any receipts pruning configured, receipts are written directly to database and
// If there's any receipts pruning configured, receipts are written directly to database and
// inconsistencies are expected.
if provider.prune_modes_ref().has_receipts_pruning() {
return Ok(())
Expand Down
Loading