use of co.rsk.rpc.modules.evm.EvmModuleImpl in project rskj by rsksmart.
the class Web3ImplSnapshotTest method createWeb3.
private Web3Impl createWeb3(SimpleEthereum ethereum) {
MinerClock minerClock = new MinerClock(true, Clock.systemUTC());
MinerServer minerServer = getMinerServerForTest(ethereum, minerClock);
MinerClientImpl minerClient = new MinerClientImpl(null, minerServer, config.minerClientDelayBetweenBlocks(), config.minerClientDelayBetweenRefreshes());
EvmModule evmModule = new EvmModuleImpl(minerServer, minerClient, minerClock, new SnapshotManager(blockchain, factory.getBlockStore(), factory.getTransactionPool(), minerServer));
PersonalModule pm = new PersonalModuleWalletDisabled();
TxPoolModule tpm = new TxPoolModuleImpl(Web3Mocks.getMockTransactionPool());
DebugModule dm = new DebugModuleImpl(null, null, Web3Mocks.getMockMessageHandler(), null);
ethereum.blockchain = blockchain;
return new Web3Impl(ethereum, blockchain, factory.getBlockStore(), factory.getReceiptStore(), Web3Mocks.getMockProperties(), minerClient, minerServer, pm, null, evmModule, tpm, null, dm, null, null, Web3Mocks.getMockChannelManager(), null, null, null, null, null, null, null, null, null);
}
Aggregations