aboutsummaryrefslogtreecommitdiff
path: root/main.cpp
diff options
context:
space:
mode:
authors_nakamoto <s_nakamoto@1a98c847-1fd6-4fd8-948a-caf3550aa51b>2010-05-19 00:26:56 +0000
committers_nakamoto <s_nakamoto@1a98c847-1fd6-4fd8-948a-caf3550aa51b>2010-05-19 00:26:56 +0000
commit2d98de1b3ae2ade8b1e5493bc63c0c1d776deeb1 (patch)
treeafb0807f148c4452f060ad8456a0fcb56dbae8f8 /main.cpp
parent966cca4bd4a6d869583fb47f5f66ed4672c007ff (diff)
downloadbitcoin-2d98de1b3ae2ade8b1e5493bc63c0c1d776deeb1.tar.xz
Mac OS build fixes by laszlov0.2.8
-- version 0.2.8 git-svn-id: https://bitcoin.svn.sourceforge.net/svnroot/bitcoin/trunk@76 1a98c847-1fd6-4fd8-948a-caf3550aa51b
Diffstat (limited to 'main.cpp')
-rw-r--r--main.cpp6
1 files changed, 3 insertions, 3 deletions
diff --git a/main.cpp b/main.cpp
index f7416230f6..ad0208a252 100644
--- a/main.cpp
+++ b/main.cpp
@@ -1338,7 +1338,7 @@ bool CBlock::AcceptBlock()
// Don't relay old inventory during initial block download.
// Please keep this number updated to a few thousand below current block count.
- if (hashBestChain == hash && nBestHeight > 40000)
+ if (hashBestChain == hash && nBestHeight > 55000)
RelayInventory(CInv(MSG_BLOCK, hash));
// // Add atoms to user reviews for coins created
@@ -2255,9 +2255,9 @@ bool SendMessages(CNode* pto)
// Delay tx inv messages to protect privacy,
// trickle them out to a few nodes at a time.
bool fSendTxInv = false;
- if (GetTimeMillis() - pto->nLastSentTxInv > 1800 + GetRand(200))
+ if (GetTimeMillis() > pto->nNextSendTxInv)
{
- pto->nLastSentTxInv = GetTimeMillis();
+ pto->nNextSendTxInv = GetTimeMillis() + 3000 + GetRand(2000);
fSendTxInv = true;
}