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

test: e2e with queues with random capacities #903

Merged
merged 4 commits into from
Jun 29, 2024

Conversation

vadorovsky
Copy link
Contributor

No description provided.

@vadorovsky vadorovsky force-pushed the vadorovsky/test-e2e-queue-cap branch from 289fda6 to cc5c57b Compare June 28, 2024 11:16
println!("config: {:?}", config);
println!("merkle tree config: {:?}", merkle_tree_config);
let queue_config = if !self.keypair_action_config.fee_assert {
let capacity: f64 = gen_prime(&mut self.rng, 1.0..10000.0).unwrap();
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

it should work with any number primes are just about efficiency right?

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Without prime numbers there is a higher chance of collisions and quadratic probe not doing the job properly, therefore the queue might fill up very quick

Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

this test is just about ensuring that the account layout works for any input though not about efficiency

@vadorovsky vadorovsky marked this pull request as ready for review June 29, 2024 05:50
@ananas-block ananas-block merged commit 73cf071 into main Jun 29, 2024
13 checks passed
@ananas-block ananas-block deleted the vadorovsky/test-e2e-queue-cap branch June 29, 2024 18:09
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants