Changeset View
Changeset View
Standalone View
Standalone View
src/net_processing.cpp
Show First 20 Lines • Show All 4,293 Lines • ▼ Show 20 Lines | if (!state.fSyncStarted && !pto->fClient && !fImporting && !fReindex) { | ||||
pindexStart->nHeight, pto->GetId(), pto->nStartingHeight); | pindexStart->nHeight, pto->GetId(), pto->nStartingHeight); | ||||
connman->PushMessage( | connman->PushMessage( | ||||
pto, msgMaker.Make(NetMsgType::GETHEADERS, | pto, msgMaker.Make(NetMsgType::GETHEADERS, | ||||
::ChainActive().GetLocator(pindexStart), | ::ChainActive().GetLocator(pindexStart), | ||||
uint256())); | uint256())); | ||||
} | } | ||||
} | } | ||||
// Resend wallet transactions that haven't gotten in a block yet | |||||
// Except during reindex, importing and IBD, when old wallet transactions | |||||
// become unconfirmed and spams other nodes. | |||||
if (!fReindex && !fImporting && !IsInitialBlockDownload()) { | |||||
GetMainSignals().Broadcast(connman); | |||||
} | |||||
// | // | ||||
// Try sending block announcements via headers | // Try sending block announcements via headers | ||||
// | // | ||||
{ | { | ||||
// If we have less than MAX_BLOCKS_TO_ANNOUNCE in our list of block | // If we have less than MAX_BLOCKS_TO_ANNOUNCE in our list of block | ||||
// hashes we're relaying, and our peer wants headers announcements, then | // hashes we're relaying, and our peer wants headers announcements, then | ||||
// find the first header not yet known to our peer but would connect, | // find the first header not yet known to our peer but would connect, | ||||
// and send. If no header would connect, or if we have too many blocks, | // and send. If no header would connect, or if we have too many blocks, | ||||
▲ Show 20 Lines • Show All 543 Lines • Show Last 20 Lines |