@@ -0,0 +1,2669 @@
+package org.ethereum.samples;%0A%0Aimport com.typesafe.config.ConfigFactory;%0Aimport org.ethereum.config.SystemProperties;%0Aimport org.ethereum.core.Block;%0Aimport org.ethereum.core.BlockchainImpl;%0Aimport org.ethereum.core.ImportResult;%0Aimport org.ethereum.crypto.ECKey;%0Aimport org.ethereum.crypto.SHA3Helper;%0Aimport org.ethereum.facade.Ethereum;%0Aimport org.ethereum.facade.EthereumFactory;%0Aimport org.spongycastle.util.encoders.Hex;%0Aimport org.springframework.context.annotation.Bean;%0A%0A/**%0A * This class just extends the BasicSample with the config which connect the peer to the Morden network%0A * This class can be used as a base for free transactions testing%0A * Everyone may use that 'cow' sender (which is effectively address aacc23ff079d96a5502b31fefcda87a6b3fbdcfb)%0A * If you need more coins on this account just go to https://morden.ether.camp/%0A * and push 'Get Free Ether' button.%0A *%0A * Created by Anton Nashatyrev on 10.02.2016.%0A */%0Apublic class MordenSample extends BasicSample %7B%0A    /**%0A     * Use that sender key to sign transactions%0A     */%0A    protected final byte%5B%5D senderPrivateKey = SHA3Helper.sha3(%22cow%22.getBytes());%0A    // sender address is derived from the private key aacc23ff079d96a5502b31fefcda87a6b3fbdcfb%0A    protected final byte%5B%5D senderAddress = ECKey.fromPrivate(senderPrivateKey).getAddress();%0A%0A    protected abstract static class MordenSampleConfig %7B%0A        private final String config =%0A                %22peer.discovery = %7B%22 +%0A                %22    enabled = true %5Cn%22 +%0A                %22    ip.list = %5B%22 +%0A                %22        '94.242.229.4:40404',%22 +%0A                %22        '94.242.229.203:30303'%22 +%0A                %22    %5D%22 +%0A                %22%7D %5Cn%22 +%0A                %22peer.p2p.eip8 = true %5Cn%22 +%0A                %22peer.networkId = 2 %5Cn%22 +%0A                %22sync.enabled = true %5Cn%22 +%0A                %22genesis = frontier-morden.json %5Cn%22 +%0A                %22blockchain.config.name = 'morden' %5Cn%22 +%0A                %22database.dir = mordenSampleDb%22;%0A%0A        public abstract MordenSample sampleBean();%0A%0A        @Bean%0A        public SystemProperties systemProperties() %7B%0A            SystemProperties props = new SystemProperties();%0A            props.overrideParams(ConfigFactory.parseString(config.replaceAll(%22'%22, %22%5C%22%22)));%0A            return props;%0A        %7D%0A    %7D%0A%0A    public static void main(String%5B%5D args) throws Exception %7B%0A        sLogger.info(%22Starting EthereumJ!%22);%0A%0A        class SampleConfig extends MordenSampleConfig %7B%0A            @Bean%0A            public MordenSample sampleBean() %7B%0A                return new MordenSample();%0A            %7D%0A        %7D%0A%0A        Ethereum ethereum = EthereumFactory.createEthereum(SampleConfig.class);%0A    %7D%0A%7D%0A

Add MordenSample class