Skip to content

Conversation

leolara
Copy link
Member

@leolara leolara commented Jun 22, 2022

Fixes #25133

My first go-ethereum contribution, but I done some on prysm: https://github.com/prysmaticlabs/prysm/pulls?q=+is%3Apr+author%3Aleolara+

Please, let me know how to improve this PR.

if err != nil {
return genesis.Config, common.Hash{}, err
}
performConfigOverride(genesis.Config, overrideGrayGlacier, overrideTerminalTotalDifficulty)
Copy link
Member Author

Choose a reason for hiding this comment

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

perhaps we should clone genesis.Config before overriding it?

Choose a reason for hiding this comment

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

0x62044d2cab405388891ee6d53747817f34c0f00341cde548c0ce9834e9718f27

return newcfg, stored, nil
}

func performConfigOverride(cfg *params.ChainConfig, overrideGrayGlacier *big.Int, overrideTerminalTotalDifficulty *big.Int) {
Copy link
Member Author

Choose a reason for hiding this comment

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

perhaps there is a better place for this function? should I make it a unexported method of Genesis? Does it need documentation, other private methods don't have?

Choose a reason for hiding this comment

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

0x62044d2cab405388891ee6d53747817f34c0f00341cde548c0ce9834e9718f27

@karalabe
Copy link
Member

Thanks, but there's already a PR open to tackle this #25136

@karalabe karalabe closed this Jun 22, 2022
@leolara
Copy link
Member Author

leolara commented Jun 22, 2022

@karalabe ok, no worries.

Is there a specific discord channel to discuss geth contributions, so I can talk about what I am doing before doing it?

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.

Override TTD sometimes doesn't work
3 participants