This repository was archived by the owner on Nov 6, 2020. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 1.7k
[spec] add istanbul test spec #11033
Merged
Merged
Changes from all commits
Commits
Show all changes
6 commits
Select commit
Hold shift + click to select a range
3d12c69
[spec] add istanbul test spec (wip)
ordian 75130a0
[spec] fix trailing comma
ordian bd024d6
[spec] add blake2_f precompiled
ordian 136775f
[spec] specify eip1283ReenableTransition
ordian dbf3798
Merge branch 'master' into ao-istanbul-test-spec
ordian 1f92fb8
[spec] update istanbul spec to new blake2 pricing spec
ordian File filter
Filter by extension
Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
There are no files selected for viewing
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -0,0 +1,119 @@ | ||
| { | ||
| "name": "Istanbul (test)", | ||
| "engine": { | ||
| "Ethash": { | ||
| "params": { | ||
| "minimumDifficulty": "0x020000", | ||
| "difficultyBoundDivisor": "0x0800", | ||
| "durationLimit": "0x0d", | ||
| "blockReward": "0x1BC16D674EC80000", | ||
| "homesteadTransition": "0x0", | ||
| "eip100bTransition": "0x0", | ||
| "difficultyBombDelays": { | ||
| "0": 5000000 | ||
| } | ||
| } | ||
| } | ||
| }, | ||
| "params": { | ||
| "gasLimitBoundDivisor": "0x0400", | ||
| "registrar" : "0xc6d9d2cd449a754c494264e1809c50e34d64562b", | ||
| "accountStartNonce": "0x00", | ||
| "maximumExtraDataSize": "0x20", | ||
| "minGasLimit": "0x1388", | ||
| "networkID" : "0x1", | ||
| "maxCodeSize": 24576, | ||
| "maxCodeSizeTransition": "0x0", | ||
| "eip150Transition": "0x0", | ||
| "eip160Transition": "0x0", | ||
| "eip161abcTransition": "0x0", | ||
| "eip161dTransition": "0x0", | ||
| "eip140Transition": "0x0", | ||
| "eip211Transition": "0x0", | ||
| "eip214Transition": "0x0", | ||
| "eip155Transition": "0x0", | ||
| "eip658Transition": "0x0", | ||
| "eip145Transition": "0x0", | ||
| "eip1014Transition": "0x0", | ||
| "eip1052Transition": "0x0", | ||
| "eip1283Transition": "0x0", | ||
| "eip1283ReenableTransition": "0x0", | ||
| "eip1344Transition": "0x0", | ||
| "eip1706Transition": "0x0", | ||
| "eip1884Transition": "0x0", | ||
| "eip2028Transition": "0x0" | ||
| }, | ||
| "genesis": { | ||
| "seal": { | ||
| "ethereum": { | ||
| "nonce": "0x0000000000000042", | ||
| "mixHash": "0x0000000000000000000000000000000000000000000000000000000000000000" | ||
| } | ||
| }, | ||
| "difficulty": "0x400000000", | ||
| "author": "0x0000000000000000000000000000000000000000", | ||
| "timestamp": "0x00", | ||
| "parentHash": "0x0000000000000000000000000000000000000000000000000000000000000000", | ||
| "extraData": "0x11bbe8db4e347b4e8c937c1c8370e4b5ed33adb3db69cbdb7a38e1e50b1b82fa", | ||
| "gasLimit": "0x1388" | ||
| }, | ||
| "accounts": { | ||
| "0000000000000000000000000000000000000001": { "balance": "1", "builtin": { "name": "ecrecover", "pricing": { "linear": { "base": 3000, "word": 0 } } } }, | ||
| "0000000000000000000000000000000000000002": { "balance": "1", "builtin": { "name": "sha256", "pricing": { "linear": { "base": 60, "word": 12 } } } }, | ||
| "0000000000000000000000000000000000000003": { "balance": "1", "builtin": { "name": "ripemd160", "pricing": { "linear": { "base": 600, "word": 120 } } } }, | ||
| "0000000000000000000000000000000000000004": { "balance": "1", "builtin": { "name": "identity", "pricing": { "linear": { "base": 15, "word": 3 } } } }, | ||
| "0000000000000000000000000000000000000005": { "builtin": { "name": "modexp", "activate_at": "0x00", "pricing": { "modexp": { "divisor": 20 } } } }, | ||
| "0000000000000000000000000000000000000006": { | ||
| "builtin": { | ||
| "name": "alt_bn128_add", | ||
| "activate_at": "0x00", | ||
| "eip1108_transition": "0x0", | ||
| "pricing": { | ||
| "alt_bn128_const_operations": { | ||
| "price": 500, | ||
| "eip1108_transition_price": 150 | ||
| } | ||
| } | ||
| } | ||
| }, | ||
| "0000000000000000000000000000000000000007": { | ||
| "builtin": { | ||
| "name": "alt_bn128_mul", | ||
| "activate_at": "0x00", | ||
| "eip1108_transition": "0x0", | ||
| "pricing": { | ||
| "alt_bn128_const_operations": { | ||
| "price": 40000, | ||
| "eip1108_transition_price": 6000 | ||
| } | ||
| } | ||
| } | ||
| }, | ||
| "0000000000000000000000000000000000000008": { | ||
| "builtin": { | ||
| "name": "alt_bn128_pairing", | ||
| "activate_at": "0x00", | ||
| "eip1108_transition": "0x0", | ||
| "pricing": { | ||
| "alt_bn128_pairing": { | ||
| "base": 100000, | ||
| "pair": 80000, | ||
| "eip1108_transition_base": 45000, | ||
| "eip1108_transition_pair": 34000 | ||
| } | ||
| } | ||
| } | ||
| }, | ||
| "0000000000000000000000000000000000000009": { | ||
| "builtin": { | ||
|
ordian marked this conversation as resolved.
|
||
| "name": "blake2_f", | ||
| "activate_at": "0x00", | ||
| "pricing": { | ||
| "blake2_f": { | ||
| "gas_per_round": 1 | ||
| } | ||
| } | ||
| } | ||
| } | ||
| } | ||
| } | ||
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| Original file line number | Diff line number | Diff line change |
|---|---|---|
|
|
@@ -31,6 +31,7 @@ pub enum ForkSpec { | |
| Byzantium, | ||
| Constantinople, | ||
| ConstantinopleFix, | ||
| Istanbul, | ||
|
Collaborator
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. @ordian This enum throws warnings for each variant. :/ Either we add dummy docs or annotate it
Collaborator
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. it is probably my fault in #11027, enabled the lint |
||
| EIP158ToByzantiumAt5, | ||
| FrontierToHomesteadAt5, | ||
| HomesteadToDaoAt5, | ||
|
|
||
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
Uh oh!
There was an error while loading. Please reload this page.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
The actual config we need to write for Ethereum mainnet also has “eip1283DisableTransition”, so we “technically” need one here as well. But because it’s the same block as reenable transition, it won’t matter for this test config.