diff --git a/include/opendht/dht.h b/include/opendht/dht.h
index 7722ebfb172b23c029c5cefea4258fde62952e6e..f940cc58dc2a097a11270f66effba90f26cb9484 100644
--- a/include/opendht/dht.h
+++ b/include/opendht/dht.h
@@ -343,7 +343,7 @@ private:
     static constexpr unsigned LISTEN_NODES {4};
 
     /* The maximum number of hashes we're willing to track. */
-    static constexpr unsigned MAX_HASHES {1024 * 1024};
+    static constexpr unsigned MAX_HASHES {1024 * 1024 * 1024};
 
     /* The maximum number of searches we keep data about. */
     static constexpr unsigned MAX_SEARCHES {1024 * 1024};