mirror of
https://github.com/bitcoin/bitcoin.git
synced 2025-11-11 22:50:59 +01:00
Merge pull request #7133
aa4b0c2When not filtering blocks, getdata sends more in one test (Pieter Wuille)d41e44cActually only use filterInventoryKnown with MSG_TX inventory messages. (Gregory Maxwell)b6a0da4Only use filterInventoryKnown with MSG_TX inventory messages. (Patick Strateman)6b84935Rename setInventoryKnown filterInventoryKnown (Patick Strateman)e206724Remove mruset as it is no longer used. (Gregory Maxwell)ec73ef3Replace setInventoryKnown with a rolling bloom filter. (Gregory Maxwell)
This commit is contained in:
@@ -2342,7 +2342,7 @@ unsigned int SendBufferSize() { return 1000*GetArg("-maxsendbuffer", DEFAULT_MAX
|
||||
CNode::CNode(SOCKET hSocketIn, const CAddress& addrIn, const std::string& addrNameIn, bool fInboundIn) :
|
||||
ssSend(SER_NETWORK, INIT_PROTO_VERSION),
|
||||
addrKnown(5000, 0.001),
|
||||
setInventoryKnown(SendBufferSize() / 1000)
|
||||
filterInventoryKnown(50000, 0.000001)
|
||||
{
|
||||
nServices = 0;
|
||||
hSocket = hSocketIn;
|
||||
@@ -2369,6 +2369,7 @@ CNode::CNode(SOCKET hSocketIn, const CAddress& addrIn, const std::string& addrNa
|
||||
nSendOffset = 0;
|
||||
hashContinue = uint256();
|
||||
nStartingHeight = -1;
|
||||
filterInventoryKnown.reset();
|
||||
fGetAddr = false;
|
||||
fRelayTxes = false;
|
||||
pfilter = new CBloomFilter();
|
||||
|
||||
Reference in New Issue
Block a user