We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 814ed23 commit 0167a0eCopy full SHA for 0167a0e
src/main/scala/io/iohk/ethereum/blockchain/sync/FastSync.scala
@@ -239,7 +239,7 @@ trait FastSync {
239
240
private def handleFailingMptPeers: Receive = {
241
case MarkPeerBlockchainOnly(peer) => if (!blockChainOnlyPeers.contains(peer)) {
242
- blockChainOnlyPeers = peer +: blockChainOnlyPeers.dropRight(1)
+ blockChainOnlyPeers = (peer +: blockChainOnlyPeers).take(blockChainOnlyPeersPoolSize)
243
}
244
245
0 commit comments