EIP2384 - Ice Age Adustment around Istanbul#211
Conversation
Add support for EIP2384 * Current placeholder is "EIP2384Block" because Icestanbul seemed a little too silly. * Add difficulty calculator tests from the reference tests Signed-off-by: Danno Ferrin <danno.ferrin@gmail.com>
* update to new name * add fork block numbers * update reference tests Signed-off-by: Danno Ferrin <danno.ferrin@gmail.com>
Signed-off-by: Danno Ferrin <danno.ferrin@gmail.com> # Conflicts: # config/src/test-support/java/org/hyperledger/besu/config/StubGenesisConfigOptions.java
|
Icestanbul is an amazing name. |
Signed-off-by: Danno Ferrin <danno.ferrin@gmail.com>
Signed-off-by: Danno Ferrin <danno.ferrin@gmail.com>
Signed-off-by: Danno Ferrin <danno.ferrin@gmail.com>
Signed-off-by: Danno Ferrin <danno.ferrin@gmail.com>
https: //gitter.im/ethereum/AllCoreDevs?at=5de7b410d64a052fb6b3fa8d Signed-off-by: Danno Ferrin <danno.ferrin@gmail.com>
| (time, parent, protocolContext) -> | ||
| calculateThawedDifficulty(time, parent, MUIR_GLACIER_FAKE_BLOCK_OFFSET); | ||
|
|
||
| private static BigInteger calculateThawedDifficulty( |
There was a problem hiding this comment.
Could this be calculateMuirGlacierDifficulty? As it is it seems like it reduces code discoverability if you're searching for instances of the hard fork, like you could have when it was Byzantium?
There was a problem hiding this comment.
It's used in 3 different places, Byzantium, Constantinople, and now MuirGlacier. Before it was calculageByzantiumDifficulty.
Signed-off-by: Danno Ferrin <danno.ferrin@gmail.com>
| } | ||
|
|
||
| @Test | ||
| public void testDifficultyCalculation() throws IOException { |
There was a problem hiding this comment.
Can this test not be run in isolation? Getting NullPointerExceptions when running this alone through intellij. Is there a gradle task that downloads resources?
There was a problem hiding this comment.
How many, if its 3 NPEs You need to update your submodules, if it's more you need to run it via gradle or have IntelliJ add the reference tests resoureces to the classpath when running.
Signed-off-by: Danno Ferrin <danno.ferrin@gmail.com>
Add support for MuirGlacier * Add block numbers for Ropsten and Mainnet * Add reference tests for difficulty calculations * Update reference tests for new MuirGlacier difficulty tests Signed-off-by: Danno Ferrin <danno.ferrin@gmail.com>
Add support for MuirGlacier * Add block numbers for Ropsten and Mainnet * Add reference tests for difficulty calculations * Update reference tests for new MuirGlacier difficulty tests Signed-off-by: Danno Ferrin <danno.ferrin@gmail.com> Signed-off-by: edwardmack <ed@edwardmack.com>
Engine API: respond with error if payload attributes are invalid
Add support for EIP2384
little too silly.
(ethereum/EIPs#2384)
Signed-off-by: Danno Ferrin <danno.ferrin@gmail.com>