Skip to content

Commit 943fd3b

Browse files
author
Łukasz Gąsior
committed
Fix
1 parent 34018ab commit 943fd3b

File tree

3 files changed

+8
-5
lines changed

3 files changed

+8
-5
lines changed

src/main/scala/io/iohk/ethereum/jsonrpc/TestService.scala

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,8 @@ import akka.util.{ByteString, Timeout}
66
import io.iohk.ethereum.blockchain.data.{AllocAccount, GenesisData, GenesisDataLoader}
77
import io.iohk.ethereum.consensus.ConsensusConfig
88
import io.iohk.ethereum.domain.{Address, Block, BlockchainImpl, UInt256}
9-
import io.iohk.ethereum.ledger.{BlockQueue, Ledger, LedgerImpl, LocalVM}
9+
import io.iohk.ethereum.ledger.Ledger.VMImpl
10+
import io.iohk.ethereum.ledger.{BlockQueue, Ledger, LedgerImpl}
1011
import io.iohk.ethereum.mining.{BlockGenerator, BlockTimestampProvider, PendingBlock}
1112
import io.iohk.ethereum.transactions.PendingTransactionsManager
1213
import io.iohk.ethereum.transactions.PendingTransactionsManager.PendingTransactionsResponse
@@ -51,6 +52,7 @@ object TestService {
5152
}
5253

5354
class TestService(
55+
vm: VMImpl,
5456
blockchain: BlockchainImpl,
5557
pendingTransactionsManager: ActorRef,
5658
consensusConfig: ConsensusConfig,
@@ -165,7 +167,7 @@ class TestService(
165167

166168
private def setupLedger(newBlockchainConfig: BlockchainConfig): Unit = {
167169
blockchainConfig = newBlockchainConfig
168-
ledgerHolder.send(new LedgerImpl(LocalVM, blockchain, new BlockQueue(blockchain, 5, 5), blockchainConfig, new Validators {
170+
ledgerHolder.send(new LedgerImpl(vm, blockchain, new BlockQueue(blockchain, 5, 5), blockchainConfig, new Validators {
169171
override val blockValidator: BlockValidator = validators.blockValidator
170172
override val blockHeaderValidator: BlockHeaderValidator = (_, _) => Right(BlockHeaderValid)
171173
override val ommersValidator: OmmersValidator = validators.ommersValidator

src/main/scala/io/iohk/ethereum/nodebuilder/NodeBuilder.scala

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -334,9 +334,10 @@ trait TestServiceBuilder {
334334
ConsensusConfigBuilder with
335335
BlockchainConfigBuilder with
336336
ValidatorsBuilder with
337-
LedgerHolderBuilder =>
337+
LedgerHolderBuilder with
338+
VmBuilder =>
338339

339-
lazy val testService = new TestService(blockchain, pendingTransactionsManager, consensusConfig, blockchainConfig, validators, ledgerHolder)
340+
lazy val testService = new TestService(vm, blockchain, pendingTransactionsManager, consensusConfig, blockchainConfig, validators, ledgerHolder)
340341
}
341342

342343
trait KeyStoreBuilder {

src/universal/conf/testmode.conf

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -18,7 +18,7 @@ mantis {
1818
}
1919

2020
network.rpc {
21-
apis = "eth,web3,net,personal,daedalus,test"
21+
apis = "eth,web3,net,personal,daedalus,test,iele"
2222
}
2323

2424
}

0 commit comments

Comments
 (0)