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
// Our notion of what blocks a peer has available is based on its pindexBestKnownBlock,
2134
-
// which is based on headers received from it. If we don't have one, or it's too old,
2135
-
// then we can never get blocks from this peer until we accept headers from it first.
2136
-
LogPrint(BCLog::NET, "NOT discarding headers from peer=%d, to update its block availability. (current best header %d, active chain height %d)\n", pfrom.GetId(), pindexBestHeader->nHeight, m_chainman.ActiveHeight());
2137
-
} else {
2138
-
LogPrint(BCLog::NET, "Discarding received headers and pausing header sync from peer=%d, because we are too far ahead of block sync. (%d > %d)\n", pfrom.GetId(), pindexBestHeader->nHeight, m_chainman.ActiveHeight());
2139
-
if (nodestate->fSyncStarted) {
2140
-
// Cancel sync from this node, so we don't penalize it later.
2141
-
// This will cause us to automatically start syncing from a different node (or restart syncing from the same node) later,
2142
-
// if we still need to sync headers.
2143
-
nSyncStarted--;
2144
-
nodestate->fSyncStarted = false;
2145
-
nodestate->m_headers_sync_timeout = 0us;
2133
+
// Our notion of what blocks a peer has available is based on its pindexBestKnownBlock,
2134
+
// which is based on headers received from it. If we don't have one, or it's too old,
2135
+
// then we can never get blocks from this peer until we accept headers from it first.
2136
+
LogPrint(BCLog::NET, "NOT discarding headers from peer=%d, to update its block availability. (current best header %d, active chain height %d)\n", pfrom.GetId(), pindexBestHeader->nHeight, m_chainman.ActiveHeight());
2137
+
} else {
2138
+
LogPrint(BCLog::NET, "Discarding received headers and pausing header sync from peer=%d, because we are too far ahead of block sync. (%d > %d)\n", pfrom.GetId(), pindexBestHeader->nHeight, m_chainman.ActiveHeight());
2139
+
if (nodestate->fSyncStarted) {
2140
+
// Cancel sync from this node, so we don't penalize it later.
2141
+
// This will cause us to automatically start syncing from a different node (or restart syncing from the same node) later,
0 commit comments