You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
* Rewind N blocks(fast-sync-block-validation-n) and blacklist that Peer, in case ParentDifficultyNotFound happens while fast sync is processing blocks
* Change log level to warning in case of blacklist
log.debug(s"got empty mpt node response for known hashes switching to blockchain only: ${requestedHashes.map(h =>Hex.toHexString(h.v.toArray[Byte]))}")
392
+
if (nodeData.values.isEmpty&& requestedHashes.nonEmpty) {
393
+
log.info(s"got empty mpt node response for known hashes from peer ${peer.id}: ${requestedHashes.map(h =>Hex.toHexString(h.v.toArray[Byte]))}")
390
394
blacklist(peer.id,blacklistDuration, "empty mpt node response for known hashes")
391
395
}
392
396
@@ -679,24 +683,28 @@ class FastSync(
679
683
}
680
684
681
685
defrequestNodes(peer: Peer):Unit= {
682
-
val (nonMptNodesToGet, remainingNonMptNodes) = syncState.pendingNonMptNodes.splitAt(nodesPerRequest)
683
-
val (mptNodesToGet, remainingMptNodes) = syncState.pendingMptNodes.splitAt(nodesPerRequest - nonMptNodesToGet.size)
0 commit comments