X-Git-Url: https://git.novaco.in/?a=blobdiff_plain;f=src%2Fnet.h;fp=src%2Fnet.h;h=b44cc5d9b5eed37c57593941c0cae2aca18426f1;hb=a6b4a11385bf44e695c3e47cbd0de6e40eea0b23;hp=6fd494487cc5eddc47b83d15a56b28ab3c1a6026;hpb=5fee401fe14aa6459428a26a82f764db70a6a0b9;p=novacoin.git diff --git a/src/net.h b/src/net.h index 6fd4944..b44cc5d 100644 --- a/src/net.h +++ b/src/net.h @@ -14,6 +14,7 @@ #include #endif +#include "mruset.h" #include "netbase.h" #include "protocol.h" #include "addrman.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)