Skip to content

Commit c26dac7

Browse files
committed
Bumped version number, Fixed testnet min snode cache issue
1 parent 5c30417 commit c26dac7

File tree

2 files changed

+5
-1
lines changed

2 files changed

+5
-1
lines changed

CMakeLists.txt

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -17,7 +17,7 @@ if(CCACHE_PROGRAM)
1717
endif()
1818

1919
project(libsession-util
20-
VERSION 1.5.6
20+
VERSION 1.5.7
2121
DESCRIPTION "Session client utility library"
2222
LANGUAGES ${LANGS})
2323

src/session_network.cpp

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -821,6 +821,10 @@ size_t Network::min_snode_cache_size() const {
821821
// having issues) then the minimum size should be the full cache size (minus enough to build a
822822
// path) or at least the size of a path
823823
auto min_path_size = static_cast<size_t>(path_size);
824+
825+
if (use_testnet)
826+
return min_path_size;
827+
824828
return std::min(
825829
std::max(min_path_size, *seed_node_cache_size - min_path_size), min_snode_cache_count);
826830
}

0 commit comments

Comments
 (0)