make less false positives( no false positive given in tests with this setting)

This commit is contained in:
alfredo 2017-02-16 19:33:16 -03:00 committed by elmato
parent 030577f671
commit 73abb804ae

View file

@ -295,7 +295,7 @@ void database_api_impl::set_subscribe_callback( std::function<void(const variant
static fc::bloom_parameters param;
param.projected_element_count = 10000;
param.false_positive_probability = 1.0/10000;
param.false_positive_probability = 1.0/100;
param.maximum_size = 1024*8*8*2;
param.compute_optimal_parameters();
_subscribe_filter = fc::bloom_filter(param);