public
Created

  • Download Gist
gistfile1.diff
Diff
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21
diff --git a/src/main.cpp b/src/main.cpp
index 3052cfb..ba05c47 100644
--- a/src/main.cpp
+++ b/src/main.cpp
@@ -1619,6 +1619,7 @@ bool CBlock::SetBestChain(CTxDB& txdb, CBlockIndex* pindexNew)
bnBestChainWork = pindexNew->bnChainWork;
nTimeBestReceived = GetTime();
nTransactionsUpdated++;
+ printf("TESTING: %llu Accepted block %s\n", GetTimeMillis(), hashBestChain.ToString().c_str());
printf("SetBestChain: new best=%s height=%d work=%s date=%s\n",
hashBestChain.ToString().substr(0,20).c_str(), nBestHeight, bnBestChainWork.ToString().c_str(),
DateTimeStrFormat("%x %H:%M:%S", pindexBest->GetBlockTime()).c_str());
@@ -1764,6 +1765,8 @@ bool CBlock::AcceptBlock()
if (mapBlockIndex.count(hash))
return error("AcceptBlock() : block already in mapBlockIndex");
+ printf("TESTING: %llu Received block %s\n", GetTimeMillis(), GetHash().ToString().c_str());
+
// Get prev block index
map<uint256, CBlockIndex*>::iterator mi = mapBlockIndex.find(hashPrevBlock);
if (mi == mapBlockIndex.end())

Please sign in to comment on this gist.

Something went wrong with that request. Please try again.