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

Rework random block sampling for rep crawler #4792

Merged
merged 3 commits into from
Nov 26, 2024

Conversation

pwojcikdev
Copy link
Contributor

This improves how random blocks are sampled for rep crawler. The issue with previous way was that it sometimes caused tests to fail, simply because block hashes were too close together and it was improbable for some to be chosen.

This was never a problem for live network where there are many more blocks, but randomly failing tests are annoying nevertheless. The new way avoids some code repetition so that's a plus.

@gr0vity-dev-bot
Copy link

gr0vity-dev-bot commented Nov 25, 2024

Test Results for Commit 4ad3629

Pull Request 4792: Results
Overall Status:

Test Case Results

  • 5n4pr_conf_10k_bintree: PASS (Duration: 114s)
  • 5n4pr_conf_10k_change: PASS (Duration: 180s)
  • 5n4pr_conf_change_dependant: PASS (Duration: 138s)
  • 5n4pr_conf_change_independant: PASS (Duration: 138s)
  • 5n4pr_conf_send_dependant: PASS (Duration: 126s)
  • 5n4pr_conf_send_independant: PASS (Duration: 138s)
  • 5n4pr_rocks_10k_bintree: PASS (Duration: 109s)
  • 5n4pr_rocks_10k_change: PASS (Duration: 172s)

Last updated: 2024-11-25 17:42:24 UTC

@pwojcikdev pwojcikdev merged commit 9e692a4 into nanocurrency:develop Nov 26, 2024
28 checks passed
@qwahzi qwahzi added this to the V28 milestone Nov 26, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
Status: Merged / V28.0
Development

Successfully merging this pull request may close these issues.

3 participants