-
Notifications
You must be signed in to change notification settings - Fork 1.1k
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Add a version of constantinople HF without eip1283
- Loading branch information
Showing
10 changed files
with
91 additions
and
6 deletions.
There are no files selected for viewing
This file contains 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
26 changes: 26 additions & 0 deletions
26
ethereumj-core/src/main/java/org/ethereum/config/blockchain/PetersburgConfig.java
This file contains 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,26 @@ | ||
package org.ethereum.config.blockchain; | ||
|
||
import org.ethereum.config.BlockchainConfig; | ||
|
||
/** | ||
* A version of Constantinople Hard Fork after removing eip-1283. | ||
* <p> | ||
* Unofficial name 'Petersburg', includes: | ||
* <ul> | ||
* <li>1234 - Constantinople Difficulty Bomb Delay and Block Reward Adjustment (2 ETH)</li> | ||
* <li>145 - Bitwise shifting instructions in EVM</li> | ||
* <li>1014 - Skinny CREATE2</li> | ||
* <li>1052 - EXTCODEHASH opcode</li> | ||
* </ul> | ||
*/ | ||
public class PetersburgConfig extends ConstantinopleConfig { | ||
|
||
public PetersburgConfig(BlockchainConfig parent) { | ||
super(parent); | ||
} | ||
|
||
@Override | ||
public boolean eip1283() { | ||
return false; | ||
} | ||
} |
This file contains 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 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 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 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 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 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 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 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