Skip to content

Commit 17358d2

Browse files
committed
[ETCM-260] Fix merge conflicts
1 parent bd51258 commit 17358d2

File tree

2 files changed

+8
-3
lines changed

2 files changed

+8
-3
lines changed

src/it/scala/io/iohk/ethereum/sync/util/CommonFakePeer.scala

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -18,7 +18,7 @@ import io.iohk.ethereum.ledger.InMemoryWorldStateProxy
1818
import io.iohk.ethereum.mpt.MerklePatriciaTrie
1919
import io.iohk.ethereum.network.EtcPeerManagerActor.PeerInfo
2020
import io.iohk.ethereum.network.PeerManagerActor.{FastSyncHostConfiguration, PeerConfiguration}
21-
import io.iohk.ethereum.network.discovery.Node
21+
import io.iohk.ethereum.network.discovery.{DiscoveryConfig, Node}
2222
import io.iohk.ethereum.network.discovery.PeerDiscoveryManager.{DiscoveredNodesInfo, DiscoveryNodeInfo}
2323
import io.iohk.ethereum.network.handshaker.{EtcHandshaker, EtcHandshakerConfiguration, Handshaker}
2424
import io.iohk.ethereum.network.p2p.EthereumMessageDecoder
@@ -94,6 +94,7 @@ abstract class CommonFakePeer(peerName: String, fakePeerCustomConfig: FakePeerCu
9494
RocksDbDataSource(getRockDbTestConfig(tempDir.toAbsolutePath.toString), Namespaces.nsSeq)
9595
}
9696
lazy val blockchainConfig = Config.blockchains.blockchainConfig
97+
lazy val discoveryConfig = DiscoveryConfig(Config.config, blockchainConfig.bootstrapNodes)
9798

9899
/**
99100
* Default persist interval is 20s, which is too long for tests. As in all tests we treat peer as connected when
@@ -171,7 +172,8 @@ abstract class CommonFakePeer(peerName: String, fakePeerCustomConfig: FakePeerCu
171172
knownNodesManager,
172173
handshaker,
173174
authHandshaker,
174-
EthereumMessageDecoder
175+
EthereumMessageDecoder,
176+
discoveryConfig
175177
),
176178
"peer-manager"
177179
)

src/it/scala/io/iohk/ethereum/txExecTest/util/DumpChainApp.scala

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -27,6 +27,7 @@ import org.bouncycastle.util.encoders.Hex
2727

2828
import scala.concurrent.duration._
2929
import io.iohk.ethereum.domain.BlockHeader.HeaderExtraFields.HefEmpty
30+
import io.iohk.ethereum.network.discovery.DiscoveryConfig
3031

3132
object DumpChainApp extends App with NodeKeyBuilder with SecureRandomBuilder with AuthHandshakerBuilder {
3233
val conf = ConfigFactory.load("txExecTest/chainDump.conf")
@@ -37,6 +38,7 @@ object DumpChainApp extends App with NodeKeyBuilder with SecureRandomBuilder wit
3738
val maxBlocks = conf.getInt("maxBlocks")
3839

3940
val blockchainConfig = Config.blockchains.blockchainConfig
41+
val discoveryConfig = DiscoveryConfig(Config.config, blockchainConfig.bootstrapNodes)
4042

4143
val peerConfig = new PeerConfiguration {
4244
override val rlpxConfiguration: RLPxConfiguration = Config.Network.peer.rlpxConfiguration
@@ -94,7 +96,8 @@ object DumpChainApp extends App with NodeKeyBuilder with SecureRandomBuilder wit
9496
knownNodesManager = actorSystem.deadLetters, // TODO: fixme
9597
handshaker = handshaker,
9698
authHandshaker = authHandshaker,
97-
messageDecoder = EthereumMessageDecoder
99+
messageDecoder = EthereumMessageDecoder,
100+
discoveryConfig
98101
),
99102
"peer-manager"
100103
)

0 commit comments

Comments
 (0)