Mercurial > hg > bitcoin
changeset 116:38f9568289f0 draft
misc
author | s_nakamoto <s_nakamoto@1a98c847-1fd6-4fd8-948a-caf3550aa51b> |
---|---|
date | Sun, 06 Dec 2009 00:38:11 +0000 |
parents | 9b5fad6e31e6 |
children | 083776b2da19 |
files | main.cpp |
diffstat | 1 files changed, 5 insertions(+), 9 deletions(-) [+] |
line wrap: on
line diff
--- a/main.cpp +++ b/main.cpp @@ -1254,8 +1254,8 @@ if (nTime <= pindexPrev->GetMedianTimePast()) return error("AcceptBlock() : block's timestamp is too early"); - // Check that all transactions are finalized (starting around Dec 2009) - if (nBestHeight > 31000) + // Check that all transactions are finalized (starting around Mar 2010) + if (nBestHeight > 36000) foreach(const CTransaction& tx, vtx) if (!tx.IsFinal(nTime)) return error("AcceptBlock() : contains a non-final transaction"); @@ -2059,13 +2059,9 @@ vRecv >> *pblock; //// debug print - if (false) - { - printf("received block:\n"); - pblock->print(); - } - else - printf("received block %s\n", pblock->GetHash().ToString().substr(0,16).c_str()); + // printf("received block:\n"); + // pblock->print(); + printf("received block %s\n", pblock->GetHash().ToString().substr(0,16).c_str()); CInv inv(MSG_BLOCK, pblock->GetHash()); pfrom->AddInventoryKnown(inv);