-
Notifications
You must be signed in to change notification settings - Fork 627
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
[protocol change 52] Increasing max_gas_burnt to 300 #6221
Conversation
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.
Do we want to make this insta-stable? (ie, without protocol_features business?)
Co-authored-by: Aleksey Kladov <aleksey.kladov@gmail.com>
Co-authored-by: Aleksey Kladov <aleksey.kladov@gmail.com>
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.
LGTM!
Still not sure whether we should bother with a protocol_feature for this one, I don't think we decided one way or another.
My gut feeling is the process where we don't do protocol feature for purely config changes is OK.
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.
This is a protocol change. If we do it the way it is done right now, if someone sends a transaction that consumes 201Tgas in a single call during the upgrade process, the network will split
@@ -20,6 +20,8 @@ static CONFIGS: &[(ProtocolVersion, &[u8])] = &[ | |||
(48, include_config!("48.json")), | |||
(49, include_config!("49.json")), | |||
(50, include_config!("50.json")), | |||
// max_gas_burnt increased to 300 TGas |
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.
👍
@@ -155,7 +155,7 @@ pub const PEER_MIN_ALLOWED_PROTOCOL_VERSION: ProtocolVersion = MAIN_NET_PROTOCOL | |||
/// Current protocol version used on the main net. | |||
/// Some features (e. g. FixStorageUsage) require that there is at least one epoch with exactly | |||
/// the corresponding version | |||
const MAIN_NET_PROTOCOL_VERSION: ProtocolVersion = 51; | |||
const MAIN_NET_PROTOCOL_VERSION: ProtocolVersion = 52; |
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.
Unrelated to this PR but the naming confused me: why mainnet specifically?
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.
Was introduced in #5610. I think it's indeed better to rename it to STABLE_PROTOCOL_VERSION
. We need this for PEER_MIN_ALLOWED_PROTOCOL_VERSION
, to allow nightly peers to connect to mainnet I think.
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.
Agree that STABLE_PROTOCOL_VERSION
makes a lot more sense
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.
Nvm I got confused
our tests are failing with: [2022-02-01 13:21:31] INFO: Latest mainnet release is 1.23.1 |
So it appears that we cannot merge this until 1.24.0 is published 🤔 |
Increasing max_gas_burnt to 300
Testing and QA
Describe the testing plan for this protocol and why you are confident that it is ready to be stabilized.
Checklist
./scripts/nayduck.py
, docs): https://nayduck.near.org/Unreleased
section.