-
Notifications
You must be signed in to change notification settings - Fork 87
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
Versioning of ConsensusParameters
and GasCosts
#701
Conversation
Reduced default `MAX_SIZE` to be 110kb. Reduced default `MAX_CONTRACT_SIZE` to be 100kb.
pub base_asset_id: AssetId, | ||
pub enum ConsensusParameters { | ||
/// Version 1 of the consensus parameters | ||
V1(ConsensusParametersV1), |
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.
Should we consider #[non_exhaustive]
here?
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.
No, since serve will handle it=)
|
||
/// Arbitrary default consensus parameters. While best-efforts are made to adjust these to | ||
/// reasonable settings, they may not be useful for every network instantiation. | ||
#[deprecated(since = "0.12.2", note = "use `ConsensusParameters` instead.")] |
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.
Finally removed. Nice.
Related FuelLabs/fuel-core#1753
Wrapped
ConsensusParameters
andGasCosts
into an enum to support versioning.Moved
block_gas_limit
fromfuel_core_chain_config::ChainConfig
toConsensusPataremeters
.Reduced default
MAX_SIZE
to be 110kb - related FuelLabs/fuel-core#1761.Reduced default
MAX_CONTRACT_SIZE
to be 100kb - related FuelLabs/fuel-core#1761.