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

Parity config update #123

Merged
merged 1 commit into from
Sep 10, 2018
Merged

Parity config update #123

merged 1 commit into from
Sep 10, 2018

Conversation

holiman
Copy link
Collaborator

@holiman holiman commented Sep 10, 2018

Handle openethereum/parity-ethereum#9480:

  • Remove eip649 references, and has a list of blockRewards

@holiman holiman merged commit 4ab3863 into master Sep 10, 2018
@@ -4,7 +4,9 @@
"Ethash": {
"params": {
"minimumDifficulty": "0x020000",
"blockReward": "0x4563918244F40000",
"blockReward": {
"0": "0x4563918244F40000",
Copy link

Choose a reason for hiding this comment

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

terminal comma breaks jq for me

Copy link
Collaborator Author

Choose a reason for hiding this comment

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

Right, thanks

Copy link
Collaborator Author

Choose a reason for hiding this comment

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

Fixed, pushed directly into master

chainconfig=`echo $chainconfig | jq "setpath([\"engine\", \"Ethash\", \"params\", \"eip649Transition\"]; \"0x$HIVE_FORK_BYZANTIUM\")"`
# Set blockreward to 3M for byzantium
chainconfig=`echo $chainconfig | jq "setpath([\"engine\", \"Ethash\", \"params\", \"blockReward\",\"0x$HIVE_FORK_BYZANTIUM\"]; \"0x29A2241AF62C0000\")"`
# difficulty calculation -- aka bomb delay
Copy link

Choose a reason for hiding this comment

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

For the bomb delay we also need to define additional variables :

chainconfig=`echo $chainconfig | jq "setpath([\"engine\", \"Ethash\", \"params\", \"difficultyBombDelays\",\"0x$HIVE_FORK_BYZANTIUM\"]; \"3000000\")"`
chainconfig=`echo $chainconfig | jq "setpath([\"engine\", \"Ethash\", \"params\", \"difficultyBombDelays\",\"0x$HIVE_FORK_CONSTANTINOPLE\"]; \"5000000\")"`

Copy link
Collaborator Author

Choose a reason for hiding this comment

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

I'm not sure that'll make a difference -- on hive there are only a couple of blocks, so whether the bomb is delayed to 3M or 5M shouldn't matter. Hive can't really be used to test the bomb delay, I think

Copy link
Collaborator Author

Choose a reason for hiding this comment

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

Also added an empty difficultyBombDelays struct to chain.json

Copy link

Choose a reason for hiding this comment

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

Hello, I made a small (big) mistake, our 'difficultyBombDelays' is additive so the right code should be

chainconfig=`echo $chainconfig | jq "setpath([\"engine\", \"Ethash\", \"params\", \"difficultyBombDelays\",\"0x$HIVE_FORK_BYZANTIUM\"]; \"3000000\")"`
chainconfig=`echo $chainconfig | jq "setpath([\"engine\", \"Ethash\", \"params\", "difficultyBombDelays\",\"0x$HIVE_FORK_CONSTANTINOPLE\"]; \"2000000\")"`

to have 5M total delay at constantinople.

@holiman holiman deleted the parity_updates branch April 30, 2020 07:54
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.

2 participants