Search in sources :

Example 1 with RegTestConfig

use of org.ethereum.config.blockchain.RegTestConfig in project rskj by rsksmart.

the class BridgeSupportTest method setUpOnEachTest.

@Before
public void setUpOnEachTest() {
    config = new RskSystemProperties();
    config.setBlockchainConfig(new RegTestConfig());
    bridgeConstants = config.getBlockchainConfig().getCommonConstants().getBridgeConstants();
    btcParams = bridgeConstants.getBtcParams();
}
Also used : RegTestConfig(org.ethereum.config.blockchain.RegTestConfig) RskSystemProperties(co.rsk.config.RskSystemProperties) Before(org.junit.Before)

Example 2 with RegTestConfig

use of org.ethereum.config.blockchain.RegTestConfig in project rskj by rsksmart.

the class BridgeTest method setUpBeforeClass.

@BeforeClass
public static void setUpBeforeClass() throws Exception {
    config.setBlockchainConfig(new RegTestConfig());
    bridgeConstants = config.getBlockchainConfig().getCommonConstants().getBridgeConstants();
    networkParameters = bridgeConstants.getBtcParams();
}
Also used : RegTestConfig(org.ethereum.config.blockchain.RegTestConfig) BeforeClass(org.junit.BeforeClass)

Example 3 with RegTestConfig

use of org.ethereum.config.blockchain.RegTestConfig in project rskj by rsksmart.

the class NodeMessageHandlerTest method setUpBeforeClass.

@BeforeClass
public static void setUpBeforeClass() throws Exception {
    config = new RskSystemProperties();
    config.setBlockchainConfig(new RegTestConfig());
}
Also used : RegTestConfig(org.ethereum.config.blockchain.RegTestConfig) RskSystemProperties(co.rsk.config.RskSystemProperties) BeforeClass(org.junit.BeforeClass)

Example 4 with RegTestConfig

use of org.ethereum.config.blockchain.RegTestConfig in project rskj by rsksmart.

the class BridgePerformanceTestCase method setUpBeforeClass.

@BeforeClass
public static void setUpBeforeClass() throws Exception {
    config = new RskSystemProperties();
    config.setBlockchainConfig(new RegTestConfig());
    bridgeConstants = config.getBlockchainConfig().getCommonConstants().getBridgeConstants();
    networkParameters = bridgeConstants.getBtcParams();
}
Also used : RegTestConfig(org.ethereum.config.blockchain.RegTestConfig) RskSystemProperties(co.rsk.config.RskSystemProperties) BeforeClass(org.junit.BeforeClass)

Example 5 with RegTestConfig

use of org.ethereum.config.blockchain.RegTestConfig in project rskj by rsksmart.

the class RemascProcessMinerFeesTest method setUpBeforeClass.

@BeforeClass
public static void setUpBeforeClass() throws Exception {
    config = new RskSystemProperties();
    config.setBlockchainConfig(new RegTestConfig());
    remascConfig = new RemascConfigFactory(RemascContract.REMASC_CONFIG).createRemascConfig("regtest");
    accountsAddressesUpToD = new LinkedList<>();
    accountsAddressesUpToD.add(coinbaseA.getBytes());
    accountsAddressesUpToD.add(coinbaseB.getBytes());
    accountsAddressesUpToD.add(coinbaseC.getBytes());
    accountsAddressesUpToD.add(coinbaseD.getBytes());
}
Also used : RegTestConfig(org.ethereum.config.blockchain.RegTestConfig) RemascConfigFactory(co.rsk.config.RemascConfigFactory) RskSystemProperties(co.rsk.config.RskSystemProperties) BeforeClass(org.junit.BeforeClass)

Aggregations

RegTestConfig (org.ethereum.config.blockchain.RegTestConfig)12 RskSystemProperties (co.rsk.config.RskSystemProperties)8 BeforeClass (org.junit.BeforeClass)7 RemascConfigFactory (co.rsk.config.RemascConfigFactory)2 Before (org.junit.Before)2 Test (org.junit.Test)2 DevNetConfig (org.ethereum.config.blockchain.DevNetConfig)1 FallbackMainNetConfig (org.ethereum.config.blockchain.FallbackMainNetConfig)1 MainNetConfig (org.ethereum.config.net.MainNetConfig)1 TestNetConfig (org.ethereum.config.net.TestNetConfig)1