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

Fix issue #1277: make PROTOCOL related config const or static ref frozen in binary rather than loaded from config.toml #1848

Merged
merged 1 commit into from Dec 8, 2021

Conversation

yvan-sraka
Copy link
Contributor

@yvan-sraka yvan-sraka commented Nov 23, 2021

The nice side effect of this issue is that it helps to easily get rid of SerializationContext :)

@yvan-sraka yvan-sraka self-assigned this Nov 23, 2021
@yvan-sraka yvan-sraka force-pushed the protocol-config-const-in-binary branch 2 times, most recently from feee270 to 706960b Compare November 23, 2021 20:23
Copy link
Contributor

@AureliaDolo AureliaDolo left a comment

Choose a reason for hiding this comment

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

We mus be able to override the config in the tests, especially the consensus ones.

@yvan-sraka yvan-sraka force-pushed the protocol-config-const-in-binary branch from 706960b to 3d439e1 Compare November 25, 2021 11:37
@yvan-sraka yvan-sraka changed the title Fix issue #1277: make PROTOCOL related config const or static ref in binary rather than loaded from config.toml Fix issue #1277: make PROTOCOL related config const or static ref frozen in binary rather than loaded from config.toml Nov 25, 2021
AureliaDolo
AureliaDolo previously approved these changes Nov 26, 2021
Copy link
Contributor

@AureliaDolo AureliaDolo left a comment

Choose a reason for hiding this comment

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

How did you decided what modification in the test to remove ?

@yvan-sraka yvan-sraka force-pushed the protocol-config-const-in-binary branch from 5c299ee to 5221070 Compare December 7, 2021 10:22
@AureliaDolo AureliaDolo self-requested a review December 7, 2021 10:27
AureliaDolo
AureliaDolo previously approved these changes Dec 7, 2021
@AureliaDolo
Copy link
Contributor

bors merge

@yvan-sraka yvan-sraka force-pushed the protocol-config-const-in-binary branch from 45791d0 to d21c0bb Compare December 7, 2021 15:06
@AureliaDolo AureliaDolo self-requested a review December 7, 2021 15:08
AureliaDolo
AureliaDolo previously approved these changes Dec 7, 2021
@massalabs massalabs deleted a comment from AureliaDolo Dec 7, 2021
@yvan-sraka
Copy link
Contributor Author

bors merge

bors bot added a commit that referenced this pull request Dec 7, 2021
1848: Fix issue #1277: make PROTOCOL related config `const` or `static ref` frozen in binary rather than loaded from `config.toml` r=yvan-sraka a=yvan-sraka

The nice side effect of this issue is that it helps to easily get rid of `SerializationContext` :)

Co-authored-by: Yvan Sraka <yvan@sraka.xyz>
@bors
Copy link
Contributor

bors bot commented Dec 7, 2021

Build failed:

AureliaDolo
AureliaDolo previously approved these changes Dec 7, 2021
@AureliaDolo
Copy link
Contributor

bors merge

bors bot added a commit that referenced this pull request Dec 7, 2021
1848: Fix issue #1277: make PROTOCOL related config `const` or `static ref` frozen in binary rather than loaded from `config.toml` r=AureliaDolo a=yvan-sraka

The nice side effect of this issue is that it helps to easily get rid of `SerializationContext` :)

Co-authored-by: Yvan Sraka <yvan@sraka.xyz>
@bors
Copy link
Contributor

bors bot commented Dec 7, 2021

Build failed:

adrien-zinger
adrien-zinger previously approved these changes Dec 7, 2021
consensus/src/settings.rs Outdated Show resolved Hide resolved
massa-node/src/main.rs Show resolved Hide resolved
@yvan-sraka yvan-sraka force-pushed the protocol-config-const-in-binary branch 2 times, most recently from f1f067a to 2c6654a Compare December 8, 2021 09:39
or static ref frozen in binary rather than loaded from config.toml
@yvan-sraka yvan-sraka force-pushed the protocol-config-const-in-binary branch from 2c6654a to 2a77957 Compare December 8, 2021 09:45
@AureliaDolo
Copy link
Contributor

bors merge

@bors
Copy link
Contributor

bors bot commented Dec 8, 2021

Build succeeded:

@bors bors bot merged commit fba878c into main Dec 8, 2021
@bors bors bot deleted the protocol-config-const-in-binary branch December 8, 2021 10:13
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.

Make PROTOCOL related config const or static ref in binary rather than loaded from config.toml
3 participants