Skip to content

Commit

Permalink
Jumpstart headers sync
Browse files Browse the repository at this point in the history
  • Loading branch information
mooncoindev committed Apr 5, 2017
1 parent 74bde50 commit 2509173
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions src/main.cpp
Expand Up @@ -3892,6 +3892,10 @@ bool static ProcessMessage(CNode* pfrom, string strCommand, CDataStream& vRecv,
pfrom->PushMessage("verack");
pfrom->ssSend.SetVersion(min(pfrom->nVersion, PROTOCOL_VERSION));

// Jumpstart header sync
if (pfrom->fNetworkNode)
pfrom->PushMessage("getheaders", chainActive.GetLocator(pindexBestHeader), uint256());

if (!pfrom->fInbound)
{
// Advertise our address
Expand Down

0 comments on commit 2509173

Please sign in to comment.