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

unify chain id generation and usage #827

Merged
merged 13 commits into from
Dec 13, 2022

Conversation

leviathanbeak
Copy link
Contributor

@leviathanbeak leviathanbeak commented Dec 10, 2022

closes #824

I renamed Merklization trait to GenesisCommitment and moved it to chain-config module.
Moved the implementations of the trait to their respective files.

Included few extra fields in ChainConfig hash calculation.
Implemented GenesisCommitment for Genesis within chain-config module.

Made a wrapper struct Checksum([u8; 32]).

@leviathanbeak leviathanbeak marked this pull request as ready for review December 10, 2022 09:53
@leviathanbeak leviathanbeak self-assigned this Dec 10, 2022
fuel-chain-config/src/genesis.rs Show resolved Hide resolved
fuel-core/src/cli/run/p2p.rs Outdated Show resolved Hide resolved
* Updated the config to use `Genesis::root` as a checksum

* Moved initialization stuff into `fuel-p2p` module.

* Make CI happy

* Sort imports

* Updated the comment for `state`
xgreenx
xgreenx previously approved these changes Dec 12, 2022
@leviathanbeak leviathanbeak merged commit 5c0b79e into master Dec 13, 2022
@leviathanbeak leviathanbeak deleted the leviathanbeak/unify_chain_id_generation branch December 13, 2022 12:14
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Unify chain_id generation and usage across services
4 participants