X-Git-Url: https://git.novaco.in/?a=blobdiff_plain;f=src%2Fnet.h;h=d3e10f5a8928064ded4658b19676561e58fb6e1d;hb=c4341fa6abf7510c6de72cd435f4d4146dce74c2;hp=51a816d4d3c6f4856c1d5c850cca56ff70ef250a;hpb=fbbd42a535813b2d7e30dba44c5c36b70833fe55;p=novacoin.git diff --git a/src/net.h b/src/net.h index 51a816d..d3e10f5 100644 --- a/src/net.h +++ b/src/net.h @@ -14,6 +14,7 @@ #include #endif +#include "mruset.h" #include "netbase.h" #include "protocol.h" @@ -154,7 +155,7 @@ public: std::set setKnown; // inventory based relay - std::set setInventoryKnown; + mruset setInventoryKnown; std::vector vInventoryToSend; CCriticalSection cs_inventory; std::multimap mapAskFor; @@ -193,6 +194,7 @@ public: fGetAddr = false; vfSubscribe.assign(256, false); nMisbehavior = 0; + setInventoryKnown.max_size(SendBufferSize() / 1000); // Be shy and don't send version until we hear if (!fInbound)