This repository was archived by the owner on Jan 22, 2025. It is now read-only.
Gate advance-nonce change#11032
Closed
CriesofCarrots wants to merge 4 commits intosolana-labs:masterfrom
Closed
Conversation
Contributor
Author
|
@mvines , we might be able to avoid the churn of this gating by fixing the discrepancy directly: #11020 (comment) |
Contributor
Sounds promising. That would just move the gating into bank.rs but would be an improvement to the accounts plumbing fo sure |
CriesofCarrots
commented
Jul 13, 2020
| fn get_fix_nonce_overwrite_slot(operating_mode: OperatingMode) -> Slot { | ||
| match operating_mode { | ||
| OperatingMode::Development => std::u64::MAX / 2, | ||
| OperatingMode::Development => 0, |
Contributor
Author
There was a problem hiding this comment.
Made this change in order to unignore test_nonce_fee_calculator_updates
Codecov Report
@@ Coverage Diff @@
## master #11032 +/- ##
=======================================
Coverage 82.1% 82.2%
=======================================
Files 318 318
Lines 73249 73277 +28
=======================================
+ Hits 60196 60236 +40
+ Misses 13053 13041 -12 |
This was referenced Jul 15, 2020
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to subscribe to this conversation on GitHub.
Already have an account?
Sign in.
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Problem
As of #10973 , a successful nonce transaction advances the nonce to the most recent blockhash from the RecentBlockhashes sysvar instead of re-overwriting that nonce with the most recent bank blockhash. We expect those hashes to be the same, but in fact that can be different in the final tick of the slot, due to this:
solana/runtime/src/bank.rs
Line 1255 in 1880621
This caused a bank hash mismatch on our api nodes.
Summary of Changes
Fixes #11020