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
common prefix test #8233
common prefix test #8233
Conversation
|
||
let check_common_prefixes prefixes = | ||
let recent_chains = | ||
List.map prefixes ~f:(take prefixes 5 |> Hash_set.of_list (module String)) |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
it might be better to pass the prefix length to check_common_prefixes
, perhaps with a default
Malleable_error.List.iter block_producers ~f:(fun bp -> | ||
wait_for t @@ Wait_condition.node_to_initialize bp ) | ||
in | ||
let%bind.Async.Deferred.Let_syntax () = |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Would it be better to wait for some number of blocks to be produced? That number could be the same or greater than the expected common prefix length.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Sure. I would change it to wait for a certain amount of blocks.
…ation_tests/common_prefix
…ation_tests/common_prefix
…ation_tests/common_prefix
…ation_tests/common_prefix
2aeaf76
to
bcc7101
Compare
…ation_tests/common_prefix
…ocol/mina into integration_tests/common_prefix
…ation_tests/common_prefix
!approved-for-mainnet |
Thank you for contributing to Mina! Please see
CONTRIBUTING.md
if you haven'tyet. In that doc, there are more details around how to start our CI.
Explain your changes here.
Explain how you tested your changes here.
Checklist:
Closes #0000
Closes #0000