X-Git-Url: https://git.novaco.in/?a=blobdiff_plain;f=src%2Fmain.cpp;h=4e27d4b9870f5961a98561279354b22ba0b9cf3f;hb=851fe4f82c9400ced6d58f6f279bc01539d8a1f9;hp=127ca2919579b1b5b55f0db29edbf6092176e78c;hpb=80144bb96b7f4fb8b467494364699c67977ed427;p=novacoin.git diff --git a/src/main.cpp b/src/main.cpp index 127ca29..4e27d4b 100644 --- a/src/main.cpp +++ b/src/main.cpp @@ -1674,7 +1674,13 @@ bool ProcessBlock(CNode* pfrom, CBlock* pblock) // Ask this guy to fill in what we're missing if (pfrom) + { pfrom->PushGetBlocks(pindexBest, GetOrphanRoot(pblock2)); + // ppcoin: getblocks may not obtain the parent block rejected earlier + // by duplicate-stake check so we must ask for it again directly + if (!mapOrphanBlocks.count(pblock->hashPrevBlock)) + pfrom->AskFor(CInv(MSG_BLOCK, pblock->hashPrevBlock)); + } return true; }