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 ledger_priority.sequential_blocks testcase #4805

Conversation

gr0vity-dev
Copy link
Contributor

I saw this testcase failing on the windows github runner.

Different account chains are not guaranteed to have the same priority timestamp.
The opening could happen much later than the sending.
If we add a 1 second delay between processing send1 and open1, the testcase previously always failed.
The opening timestamp of "key1 account" can be equal or greater than the matching send timestamp of "genesis account".

@gr0vity-dev-bot
Copy link

gr0vity-dev-bot commented Dec 6, 2024

Test Results for Commit 0e984b4

Pull Request 4805: Results
Overall Status:

Test Case Results

  • 5n4pr_conf_10k_bintree: PASS (Duration: 109s)
  • 5n4pr_conf_10k_change: PASS (Duration: 201s)
  • 5n4pr_conf_change_dependant: PASS (Duration: 133s)
  • 5n4pr_conf_change_independant: PASS (Duration: 135s)
  • 5n4pr_conf_send_dependant: PASS (Duration: 129s)
  • 5n4pr_conf_send_independant: PASS (Duration: 123s)
  • 5n4pr_rocks_10k_bintree: PASS (Duration: 113s)
  • 5n4pr_rocks_10k_change: PASS (Duration: 162s)

Last updated: 2024-12-07 09:59:13 UTC

@pwojcikdev
Copy link
Contributor

Good fix. I added this test recently, it was generated by Claude. I didn't notice it was comparing timestamps in this way.

Different account chains are ot guaranteed to have the same priority timestamp. Openening could happen much later, independant of the sending. It can be euqal or greater
@gr0vity-dev gr0vity-dev force-pushed the prs/fix-ledger_priority-sequential_blocks branch from ce5250d to 0e984b4 Compare December 7, 2024 08:17
@pwojcikdev pwojcikdev merged commit bdbefc6 into nanocurrency:develop Dec 7, 2024
28 checks passed
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.

3 participants