Search in sources :

Example 6 with MainNetConfig

use of org.ethereum.config.net.MainNetConfig in project rskj by rsksmart.

the class GitHubBlockTest method runHomestead.

private void runHomestead(String name) throws IOException, ParseException {
    String json = JSONReader.loadJSONFromCommit("BlockchainTests/Homestead/" + name + ".json", shacommit);
    RskSystemProperties config = new RskSystemProperties();
    config.setBlockchainConfig(new GenesisConfig());
    try {
        GitHubJSONTestSuite.runGitHubJsonBlockTest(json, Collections.EMPTY_SET);
    } finally {
        config.setBlockchainConfig(new MainNetConfig());
    }
}
Also used : MainNetConfig(org.ethereum.config.net.MainNetConfig) RskSystemProperties(co.rsk.config.RskSystemProperties) GenesisConfig(org.ethereum.config.blockchain.GenesisConfig)

Aggregations

MainNetConfig (org.ethereum.config.net.MainNetConfig)6 Test (org.junit.Test)4 BlockHeader (org.ethereum.core.BlockHeader)3 GenesisConfig (org.ethereum.config.blockchain.GenesisConfig)2 RskSystemProperties (co.rsk.config.RskSystemProperties)1 BlockDifficulty (co.rsk.core.BlockDifficulty)1 DifficultyCalculator (co.rsk.core.DifficultyCalculator)1 DevNetConfig (org.ethereum.config.blockchain.DevNetConfig)1 FallbackMainNetConfig (org.ethereum.config.blockchain.FallbackMainNetConfig)1 RegTestConfig (org.ethereum.config.blockchain.RegTestConfig)1 TestNetConfig (org.ethereum.config.net.TestNetConfig)1 DifficultyTestCase (org.ethereum.jsontestsuite.DifficultyTestCase)1 DifficultyTestSuite (org.ethereum.jsontestsuite.DifficultyTestSuite)1 StateTestSuite (org.ethereum.jsontestsuite.StateTestSuite)1 StateTestRunner (org.ethereum.jsontestsuite.runners.StateTestRunner)1 Ignore (org.junit.Ignore)1