aboutsummaryrefslogtreecommitdiff
path: root/net.h
diff options
context:
space:
mode:
authors_nakamoto <s_nakamoto@1a98c847-1fd6-4fd8-948a-caf3550aa51b>2009-12-14 02:12:01 +0000
committers_nakamoto <s_nakamoto@1a98c847-1fd6-4fd8-948a-caf3550aa51b>2009-12-14 02:12:01 +0000
commit2da02dd7749060b55fd5e14696277b64583b8100 (patch)
tree338219ac575841c88b69060d6367b60364b7aae7 /net.h
parent2ed2b9a3e42110beb657efb51360cb545c6a72f8 (diff)
downloadbitcoin-2da02dd7749060b55fd5e14696277b64583b8100.tar.xz
filter out duplicate getblocks and don't relay inv messages during initial block download -- 0.2 rc2
Diffstat (limited to 'net.h')
-rw-r--r--net.h7
1 files changed, 7 insertions, 0 deletions
diff --git a/net.h b/net.h
index 7fe4a7c7d7..90af3b4b10 100644
--- a/net.h
+++ b/net.h
@@ -7,6 +7,7 @@ class CAddress;
class CInv;
class CRequestTracker;
class CNode;
+class CBlockIndex;
@@ -504,6 +505,8 @@ public:
map<uint256, CRequestTracker> mapRequests;
CCriticalSection cs_mapRequests;
uint256 hashContinue;
+ CBlockIndex* pindexLastGetBlocksBegin;
+ uint256 hashLastGetBlocksEnd;
// flood
vector<CAddress> vAddrToSend;
@@ -541,6 +544,8 @@ public:
nRefCount = 0;
nReleaseTime = 0;
hashContinue = 0;
+ pindexLastGetBlocksBegin = 0;
+ hashLastGetBlocksEnd = 0;
fGetAddr = false;
vfSubscribe.assign(256, false);
@@ -635,6 +640,7 @@ public:
}
+
void BeginMessage(const char* pszCommand)
{
cs_vSend.Enter();
@@ -900,6 +906,7 @@ public:
+ void PushGetBlocks(CBlockIndex* pindexBegin, uint256 hashEnd);
bool IsSubscribed(unsigned int nChannel);
void Subscribe(unsigned int nChannel, unsigned int nHops=0);
void CancelSubscribe(unsigned int nChannel);