package org.ethereum.config.net;

import org.apache.commons.lang3.tuple.Pair;
import org.ethereum.config.blockchain.DaoHFConfig;
import org.ethereum.config.blockchain.Eip150HFConfig;
import org.ethereum.config.blockchain.Eip160HFConfig;
import org.ethereum.config.blockchain.MordenConfig;
import org.spongycastle.util.encoders.Hex;

import java.util.Collections;
import java.util.List;

/**
 * Created by Anton Nashatyrev on 25.02.2016.
 */
public class MordenNetConfig extends AbstractNetConfig {

    public MordenNetConfig() {
        add(0, new MordenConfig.Frontier());
        add(494_000, new MordenConfig.Homestead());
        add(1_783_000, new Eip150HFConfig(new MordenConfig.Homestead()));
        add(1_885_000, new Eip160HFConfig(new MordenConfig.Homestead()));

    }
}

@@ -75,59 +75,8 @@
 ir;%0A
-import org.ethereum.config.blockchain.DaoHFConfig;%0A
 impo
@@ -439,16 +439,222 @@
 Config %7B
+%0A    private static final long EIP150_HF_BLOCK = 1_783_000;%0A    private static final byte%5B%5D EIP150_HF_BLOCK_HASH =%0A            Hex.decode(%22f376243aeff1f256d970714c3de9fd78fa4e63cf63e32a51fe1169e375d98145%22);
 %0A%0A    pu
@@ -787,25 +787,31 @@
     add(
-1_783_000
+EIP150_HF_BLOCK
 , new Ei
@@ -852,16 +852,231 @@
 stead())
+ %7B%0A            @Override%0A            public List%3CPair%3CLong, byte%5B%5D%3E%3E blockHashConstraints() %7B%0A                return Collections.singletonList(Pair.of(EIP150_HF_BLOCK, EIP150_HF_BLOCK_HASH));%0A            %7D%0A        %7D
 );%0A     

Return back separator for Morden since wrong forked peers are still there (cherry picked from commit f771768)