From: Sunny King Date: Fri, 27 Jul 2012 13:44:49 +0000 (+0100) Subject: PPCoin: Fix initial block download stuck issue X-Git-Tag: v0.4.0-unstable~121 X-Git-Url: https://git.novaco.in/?p=novacoin.git;a=commitdiff_plain;h=2f0390f03812ebcf37e592d76ff00204db95d65d PPCoin: Fix initial block download stuck issue --- diff --git a/src/main.cpp b/src/main.cpp index 70d6744..96b05a2 100644 --- a/src/main.cpp +++ b/src/main.cpp @@ -2845,8 +2845,11 @@ bool static ProcessMessage(CNode* pfrom, string strCommand, CDataStream& vRecv) // Bypass PushInventory, this must send even if redundant, // and we want it right after the last block so they don't // wait for other stuff first. + // ppcoin: send latest proof-of-work block to allow the + // download node to accept as orphan (proof-of-stake + // block might be rejected by stake connection check) vector vInv; - vInv.push_back(CInv(MSG_BLOCK, hashBestChain)); + vInv.push_back(CInv(MSG_BLOCK, GetLastBlockIndex(pindexBest, false)->GetBlockHash())); pfrom->PushMessage("inv", vInv); pfrom->hashContinue = 0; }