use of co.rsk.config.TestSystemProperties in project rskj by rsksmart.
the class EthModuleTestUtils method buildBasicEthModuleForGasEstimation.
public static EthModuleGasEstimation buildBasicEthModuleForGasEstimation(World world) {
TestSystemProperties config = new TestSystemProperties();
TransactionExecutorFactory executor = buildBasicExecutorFactory(world, config);
return new EthModuleGasEstimation(null, Constants.REGTEST_CHAIN_ID, world.getBlockChain(), null, new ReversibleTransactionExecutor(world.getRepositoryLocator(), executor), new ExecutionBlockRetriever(null, world.getBlockChain(), null, null), null, null, null, world.getBridgeSupportFactory(), config.getGasEstimationCap());
}
use of co.rsk.config.TestSystemProperties in project rskj by rsksmart.
the class EthModuleTestUtils method buildBasicEthModule.
public static EthModule buildBasicEthModule(World world) {
TestSystemProperties config = new TestSystemProperties();
TransactionExecutorFactory executor = buildBasicExecutorFactory(world, config);
return new EthModule(null, Constants.REGTEST_CHAIN_ID, world.getBlockChain(), null, new ReversibleTransactionExecutor(world.getRepositoryLocator(), executor), new ExecutionBlockRetriever(null, world.getBlockChain(), null, null), null, null, null, world.getBridgeSupportFactory(), config.getGasEstimationCap());
}
use of co.rsk.config.TestSystemProperties in project rskj by rsksmart.
the class ProgramMemoryTest method createProgram.
@Before
public void createProgram() {
TestSystemProperties config = new TestSystemProperties();
program = new Program(config.getVmConfig(), new PrecompiledContracts(config, null), new BlockFactory(config.getActivationConfig()), mock(ActivationConfig.ForBlock.class), ByteUtil.EMPTY_BYTE_ARRAY, pi, null, new HashSet<>());
}
use of co.rsk.config.TestSystemProperties in project rskj by rsksmart.
the class NestedContractsTest method buildEthModule.
private EthModule buildEthModule(World world) {
final TestSystemProperties config = new TestSystemProperties();
TransactionExecutorFactory executor = new TransactionExecutorFactory(config, world.getBlockStore(), null, null, new ProgramInvokeFactoryImpl(), new PrecompiledContracts(config, world.getBridgeSupportFactory()), null);
return new EthModule(null, Constants.REGTEST_CHAIN_ID, world.getBlockChain(), world.getTransactionPool(), new ReversibleTransactionExecutor(world.getRepositoryLocator(), executor), new ExecutionBlockRetriever(null, world.getBlockChain(), null, null), world.getRepositoryLocator(), null, null, world.getBridgeSupportFactory(), config.getGasEstimationCap());
}
use of co.rsk.config.TestSystemProperties in project rskj by rsksmart.
the class WalletFactory method createPersistentWallet.
public static Wallet createPersistentWallet(String storeName) {
final TestSystemProperties config = new TestSystemProperties();
KeyValueDataSource ds = new LevelDbDataSource(storeName, config.databaseDir());
ds.init();
return new Wallet(ds);
}
Aggregations