Skip to content

Commit 46141fa

Browse files
authored
Merge branch 'develop' into update_libraries
2 parents 0af25e1 + 51be0f4 commit 46141fa

File tree

8 files changed

+9
-1428
lines changed

8 files changed

+9
-1428
lines changed

src/main/resources/application.conf

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -388,8 +388,6 @@ mantis {
388388
# Sets max number of blocks that can be stored in queue to import on fetcher side
389389
# Warning! This setting affects ability to go back in case of branch resolution so it should not be too low
390390
max-fetcher-queue-size = 1000
391-
392-
use-new-regular-sync = true
393391
}
394392

395393
pruning {

src/main/scala/io/iohk/ethereum/blockchain/sync/SyncController.scala

Lines changed: 3 additions & 22 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
package io.iohk.ethereum.blockchain.sync
22

33
import akka.actor.{Actor, ActorLogging, ActorRef, PoisonPill, Props, Scheduler}
4-
import io.iohk.ethereum.blockchain.sync.regular.{OldRegularSync, RegularSync}
4+
import io.iohk.ethereum.blockchain.sync.regular.RegularSync
55
import io.iohk.ethereum.consensus.validators.Validators
66
import io.iohk.ethereum.db.storage.{AppStateStorage, FastSyncStateStorage}
77
import io.iohk.ethereum.domain.Blockchain
@@ -85,9 +85,7 @@ class SyncController(
8585
context become runningFastSync(fastSync)
8686
}
8787

88-
def startRegularSync(): Unit = if (syncConfig.useNewRegularSync) startNewRegularSync() else startOldRegularSync()
89-
90-
def startNewRegularSync(): Unit = {
88+
def startRegularSync(): Unit = {
9189
val peersClient = context.actorOf(PeersClient.props(etcPeerManager, peerEventBus, syncConfig, scheduler), "peers-client")
9290
val regularSync = context.actorOf(
9391
RegularSync.props(
@@ -100,29 +98,12 @@ class SyncController(
10098
ommersPool,
10199
pendingTransactionsManager,
102100
scheduler),
103-
"new-regular-sync"
101+
"regular-sync"
104102
)
105103
regularSync ! RegularSync.Start
106104
context become runningRegularSync(regularSync)
107105
}
108106

109-
def startOldRegularSync(): Unit = {
110-
val regularSync = context.actorOf(OldRegularSync.props(
111-
appStateStorage = appStateStorage,
112-
etcPeerManager = etcPeerManager,
113-
peerEventBus = peerEventBus,
114-
ommersPool = ommersPool,
115-
pendingTransactionsManager = pendingTransactionsManager,
116-
broadcaster = new BlockBroadcast(etcPeerManager, syncConfig),
117-
ledger = ledger,
118-
blockchain = blockchain,
119-
syncConfig = syncConfig,
120-
scheduler = scheduler
121-
), "old-regular-sync")
122-
123-
regularSync ! OldRegularSync.Start
124-
context become runningRegularSync(regularSync)
125-
}
126107
}
127108

128109
object SyncController {

0 commit comments

Comments
 (0)