X-Git-Url: https://git.novaco.in/?p=novacoin.git;a=blobdiff_plain;f=src%2Fcheckpoints.cpp;h=4afdab9ade4f03890b02637d36c969bccf482ed4;hp=8ea198cea99e9e41cce7d3cac2a8bb12f5f0d2cc;hb=d56fde1346ccd32ca6a6e98d9a0a84c8fa9939e7;hpb=c5a1b2f61667ee11bae5183170535482c7b476d9 diff --git a/src/checkpoints.cpp b/src/checkpoints.cpp index 8ea198c..4afdab9 100644 --- a/src/checkpoints.cpp +++ b/src/checkpoints.cpp @@ -99,6 +99,10 @@ namespace Checkpoints hashSyncCheckpoint = checkpointMessagePending.hashCheckpoint; checkpointMessage = checkpointMessagePending; checkpointMessagePending.SetNull(); + printf("AcceptPendingSyncCheckpoint : sync-checkpoint at %s\n", hashSyncCheckpoint.ToString().c_str()); + // relay the checkpoint + BOOST_FOREACH(CNode* pnode, vNodes) + checkpointMessage.RelayTo(pnode); return true; } @@ -235,6 +239,7 @@ bool CSyncCheckpoint::ProcessSyncCheckpoint(CNode* pfrom) { // We haven't accepted this block, keep the checkpoint as pending Checkpoints::checkpointMessagePending = *this; + printf("ProcessSyncCheckpoint : pending for sync-checkpoint %s\n", hashCheckpoint.ToString().c_str()); // Ask this guy to fill in what we're missing if (pfrom) pfrom->PushGetBlocks(pindexBest, hashCheckpoint); @@ -245,6 +250,7 @@ bool CSyncCheckpoint::ProcessSyncCheckpoint(CNode* pfrom) Checkpoints::hashSyncCheckpoint = this->hashCheckpoint; Checkpoints::checkpointMessage = *this; Checkpoints::checkpointMessagePending.SetNull(); + printf("ProcessSyncCheckpoint : sync-checkpoint at %s\n", Checkpoints::hashSyncCheckpoint.ToString().c_str()); } return true; }