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

Cleanup of genesis constants within ledger_constants #3381

Merged
merged 5 commits into from
Jul 20, 2021
Merged

Conversation

clemahieu
Copy link
Contributor

genesis_block is converted to a block shared_ptr rather than the textual data which callers don't need and could regenerate from the block format.
Replace member variables genesis_hash and genesis_account with same-named functions that derive their values from the genesis block eliminating some memorization.
Remove the nano::genesis parameter from block_store::initialize as most of the body of the function uses the network_params.ledger_constants member to obtain genesis constants anyway.

@clemahieu clemahieu merged commit 2df6bee into develop Jul 20, 2021
@clemahieu clemahieu deleted the direct_genesis branch July 20, 2021 10:50
@zhyatt zhyatt added this to the V23.0 milestone Jul 20, 2021
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.

4 participants