Skip to content

Commit fc0f0b8

Browse files
author
Aurélien Richez
committed
review fixes
1 parent 041dfb0 commit fc0f0b8

File tree

2 files changed

+7
-8
lines changed

2 files changed

+7
-8
lines changed

src/main/resources/conf/testmode.conf

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -49,9 +49,7 @@ mantis {
4949
}
5050

5151
network {
52-
rpc {
53-
apis = "eth,web3,net,personal,mantis,test,iele,debug,qa,checkpointing"
54-
}
52+
rpc.apis = "eth,web3,net,personal,mantis,test,iele,debug,qa,checkpointing"
5553
automatic-port-forwarding = false
5654
}
5755

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

Lines changed: 6 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -171,17 +171,18 @@ class TestService(
171171
}
172172

173173
private def buildNewConfig(blockchainParams: BlockchainParams) = {
174-
val byzantiumBlockNumber: BigInt = blockchainParams.byzantiumForkBlock.getOrElse(Int.MaxValue)
175-
val istanbulForkBlockNumber: BigInt = blockchainParams.istanbulForkBlock.getOrElse(Int.MaxValue)
174+
val neverOccuringBlock = Int.MaxValue
175+
val byzantiumBlockNumber: BigInt = blockchainParams.byzantiumForkBlock.getOrElse(neverOccuringBlock)
176+
val istanbulForkBlockNumber: BigInt = blockchainParams.istanbulForkBlock.getOrElse(neverOccuringBlock)
176177

177178
// For block number which are not specified by retesteth, we try to align the number to another fork
178179
testLedgerWrapper.blockchainConfig.copy(
179-
homesteadBlockNumber = blockchainParams.homesteadForkBlock.getOrElse(Int.MaxValue),
180-
eip150BlockNumber = blockchainParams.EIP150ForkBlock.getOrElse(Int.MaxValue),
180+
homesteadBlockNumber = blockchainParams.homesteadForkBlock.getOrElse(neverOccuringBlock),
181+
eip150BlockNumber = blockchainParams.EIP150ForkBlock.getOrElse(neverOccuringBlock),
181182
eip160BlockNumber = byzantiumBlockNumber,
182183
eip161BlockNumber = byzantiumBlockNumber,
183184
byzantiumBlockNumber = byzantiumBlockNumber,
184-
constantinopleBlockNumber = blockchainParams.constantinopleForkBlock.getOrElse(Int.MaxValue),
185+
constantinopleBlockNumber = blockchainParams.constantinopleForkBlock.getOrElse(neverOccuringBlock),
185186
petersburgBlockNumber = istanbulForkBlockNumber,
186187
aghartaBlockNumber = istanbulForkBlockNumber,
187188
istanbulBlockNumber = istanbulForkBlockNumber,

0 commit comments

Comments
 (0)