Skip to content

Commit 0167a0e

Browse files
committed
fix blockChainOnlyPeers size
1 parent 814ed23 commit 0167a0e

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

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

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -239,7 +239,7 @@ trait FastSync {
239239

240240
private def handleFailingMptPeers: Receive = {
241241
case MarkPeerBlockchainOnly(peer) => if (!blockChainOnlyPeers.contains(peer)) {
242-
blockChainOnlyPeers = peer +: blockChainOnlyPeers.dropRight(1)
242+
blockChainOnlyPeers = (peer +: blockChainOnlyPeers).take(blockChainOnlyPeersPoolSize)
243243
}
244244
}
245245

0 commit comments

Comments
 (0)