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

Versioning of ConsensusParameters and GasCosts #701

Merged
merged 3 commits into from
Mar 21, 2024

Conversation

xgreenx
Copy link
Collaborator

@xgreenx xgreenx commented Mar 21, 2024

Related FuelLabs/fuel-core#1753

Wrapped ConsensusParameters and GasCosts into an enum to support versioning.
Moved block_gas_limit from fuel_core_chain_config::ChainConfig to ConsensusPataremeters.
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.

Reduced default `MAX_SIZE` to be 110kb.
Reduced default `MAX_CONTRACT_SIZE` to be 100kb.
@xgreenx xgreenx requested a review from a team March 21, 2024 10:43
@xgreenx xgreenx self-assigned this Mar 21, 2024
pub base_asset_id: AssetId,
pub enum ConsensusParameters {
/// Version 1 of the consensus parameters
V1(ConsensusParametersV1),
Copy link
Member

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?

Copy link
Collaborator Author

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.")]
Copy link
Member

Choose a reason for hiding this comment

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

Finally removed. Nice.

@xgreenx xgreenx added this pull request to the merge queue Mar 21, 2024
Merged via the queue into master with commit 510a0d6 Mar 21, 2024
38 checks passed
@xgreenx xgreenx deleted the feature/versioning-consensus-parameters branch March 21, 2024 22:11
@xgreenx xgreenx mentioned this pull request Mar 28, 2024
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.

2 participants