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

Genesis, ChainID, and Context Configuration #18

Merged
merged 1 commit into from
Aug 24, 2021

Conversation

alanorwick
Copy link
Contributor

WIP for writing genesis block based off of context.

@alanorwick alanorwick self-assigned this Aug 9, 2021
This was linked to issues Aug 9, 2021
@alanorwick alanorwick changed the title First pass at genesis block encodings Genesis, ChainID, and Context Configuration Aug 10, 2021
@alanorwick alanorwick linked an issue Aug 10, 2021 that may be closed by this pull request
case 6:
genesis = core.MainnetZoneGenesisBlock(params.MainnetZoneOneChainConfig)
case 7:
genesis = core.MainnetZoneGenesisBlock(params.MainnetZoneOneChainConfig)

Choose a reason for hiding this comment

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

please fix the whitespace

Copy link
Contributor

Choose a reason for hiding this comment

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

Why is it all zone 1?

Copy link
Contributor Author

@alanorwick alanorwick Aug 13, 2021

Choose a reason for hiding this comment

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

@jdowning100 Fixed in #23

},
Threshold: 2,
}
MainnetCheckpointOracle = &CheckpointOracleConfig{}

Choose a reason for hiding this comment

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

please add a TODO here saying that we need to add checkpoint keys back in.

@@ -316,6 +255,7 @@ type CheckpointOracleConfig struct {
type ChainConfig struct {
ChainID *big.Int `json:"chainId"` // chainId identifies the current chain and is used for replay protection

Context int // Context defines the index in which the chain operates at
HomesteadBlock *big.Int `json:"homesteadBlock,omitempty"` // Homestead switch block (nil = no fork, 0 = already homestead)

Choose a reason for hiding this comment

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

We don't need to do this here, but we should make an issue to remove all of the forks that exist in ETH and make this a clean slate

Copy link
Contributor Author

Choose a reason for hiding this comment

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

@mechanikalk yeah it'll be an issue that we need to flag

Copy link
Contributor Author

Choose a reason for hiding this comment

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

would be best to do it all in one go

@alanorwick alanorwick closed this Aug 12, 2021
@alanorwick alanorwick reopened this Aug 12, 2021
@mechanikalk mechanikalk self-requested a review August 19, 2021 17:00
@alanorwick alanorwick merged commit 2cc663a into block_header Aug 24, 2021
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.

Chain ID Breakout For Each Context Genesis Struct Creation Implementation Block Header Modification
3 participants