@@ -6,7 +6,8 @@ import akka.util.{ByteString, Timeout}
6
6
import io .iohk .ethereum .blockchain .data .{AllocAccount , GenesisData , GenesisDataLoader }
7
7
import io .iohk .ethereum .consensus .ConsensusConfig
8
8
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 }
10
11
import io .iohk .ethereum .mining .{BlockGenerator , BlockTimestampProvider , PendingBlock }
11
12
import io .iohk .ethereum .transactions .PendingTransactionsManager
12
13
import io .iohk .ethereum .transactions .PendingTransactionsManager .PendingTransactionsResponse
@@ -51,6 +52,7 @@ object TestService {
51
52
}
52
53
53
54
class TestService (
55
+ vm : VMImpl ,
54
56
blockchain : BlockchainImpl ,
55
57
pendingTransactionsManager : ActorRef ,
56
58
consensusConfig : ConsensusConfig ,
@@ -165,7 +167,7 @@ class TestService(
165
167
166
168
private def setupLedger (newBlockchainConfig : BlockchainConfig ): Unit = {
167
169
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 {
169
171
override val blockValidator : BlockValidator = validators.blockValidator
170
172
override val blockHeaderValidator : BlockHeaderValidator = (_, _) => Right (BlockHeaderValid )
171
173
override val ommersValidator : OmmersValidator = validators.ommersValidator
0 commit comments