Skip to content
This repository was archived by the owner on Jan 22, 2025. It is now read-only.

Conversation

@jeffwashington
Copy link
Contributor

@jeffwashington jeffwashington commented Oct 13, 2023

Problem

See #32801

until the account_hash_ignore_slot feature gets activated, there is some non-determinism in testing.

Summary of Changes

Remove non-determinism.

Fixes #32800

@jeffwashington
Copy link
Contributor Author

@ripatel-fd

@codecov
Copy link

codecov bot commented Oct 13, 2023

Codecov Report

Merging #33692 (50a9bf8) into master (09e858d) will decrease coverage by 0.1%.
Report is 2 commits behind head on master.
The diff coverage is 100.0%.

@@            Coverage Diff            @@
##           master   #33692     +/-   ##
=========================================
- Coverage    81.8%    81.8%   -0.1%     
=========================================
  Files         806      806             
  Lines      217676   217679      +3     
=========================================
- Hits       178220   178200     -20     
- Misses      39456    39479     +23     

@jeffwashington jeffwashington marked this pull request as ready for review October 13, 2023 21:21
Copy link
Contributor

@ripatel-fd ripatel-fd left a comment

Choose a reason for hiding this comment

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

This looks good. But it might be worth confirming that this behaves correctly in case feature activation is scheduled in a future slot. (Which I believe is the second parameter of the tuple here (pubkey, _))

@jeffwashington
Copy link
Contributor Author

This looks good. But it might be worth confirming that this behaves correctly in case feature activation is scheduled in a future slot. (Which I believe is the second parameter of the tuple here (pubkey, _))

tuple.1 is the account itself.

pub accounts: BTreeMap<Pubkey, Account>,

Copy link
Contributor

@brooksprumo brooksprumo left a comment

Choose a reason for hiding this comment

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

Lgtm

@jeffwashington jeffwashington merged commit 69495f4 into solana-labs:master Oct 16, 2023
@jeffwashington jeffwashington added the v1.17 PRs that should be backported to v1.17 label Oct 16, 2023
mergify bot pushed a commit that referenced this pull request Oct 16, 2023
jeffwashington added a commit that referenced this pull request Oct 16, 2023
@jeffwashington jeffwashington added the v1.16 PRs that should be backported to v1.16 label Oct 17, 2023
mergify bot pushed a commit that referenced this pull request Oct 17, 2023
jeffwashington added a commit that referenced this pull request Oct 19, 2023
…ckport of #33692) (#33728)

Fix non-determinism in account_hash_ignore_slot on genesis (#33692)

(cherry picked from commit 69495f4)

Co-authored-by: Jeff Washington (jwash) <[email protected]>
jeffwashington added a commit that referenced this pull request Oct 19, 2023
…ckport of #33692) (#33720)

Fix non-determinism in account_hash_ignore_slot on genesis (#33692)

(cherry picked from commit 69495f4)

Co-authored-by: Jeff Washington (jwash) <[email protected]>
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.

Labels

v1.16 PRs that should be backported to v1.16 v1.17 PRs that should be backported to v1.17

Projects

None yet

Development

Successfully merging this pull request may close these issues.

account_hash_ignore_slot behaves incorrectly at genesis

3 participants