Skip to content
This repository has been archived by the owner on Dec 5, 2024. It is now read-only.

Commit

Permalink
Switch StandaloneBlockchain to PetersburgConfig
Browse files Browse the repository at this point in the history
  • Loading branch information
mkalinin committed Mar 14, 2019
1 parent 08e89f1 commit 8731060
Showing 1 changed file with 3 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -25,6 +25,7 @@
import org.ethereum.config.blockchain.DaoNoHFConfig;
import org.ethereum.config.blockchain.FrontierConfig;
import org.ethereum.config.blockchain.HomesteadConfig;
import org.ethereum.config.blockchain.PetersburgConfig;
import org.ethereum.core.*;
import org.ethereum.core.genesis.GenesisLoader;
import org.ethereum.crypto.ECKey;
Expand Down Expand Up @@ -765,8 +766,8 @@ public synchronized void updateBatch(Map<byte[], byte[]> rows) {
}

// Override blockchain net config for fast mining
public static ByzantiumConfig getEasyMiningConfig() {
return new ByzantiumConfig(new DaoNoHFConfig(new HomesteadConfig(new HomesteadConfig.HomesteadConstants() {
public static PetersburgConfig getEasyMiningConfig() {
return new PetersburgConfig(new DaoNoHFConfig(new HomesteadConfig(new HomesteadConfig.HomesteadConstants() {
@Override
public BigInteger getMINIMUM_DIFFICULTY() {
return BigInteger.ONE;
Expand Down

0 comments on commit 8731060

Please sign in to comment.