From 3048de18bbf4c63d2796b77e8a6f8f55fce36ff5 Mon Sep 17 00:00:00 2001 From: Rob Walker Date: Wed, 20 Mar 2019 11:10:42 -0700 Subject: [PATCH] add doc that should have been copy-pasta'd from bench (#3389) --- runtime/src/status_cache.rs | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/runtime/src/status_cache.rs b/runtime/src/status_cache.rs index 9a98f28989..c96fa0310a 100644 --- a/runtime/src/status_cache.rs +++ b/runtime/src/status_cache.rs @@ -24,6 +24,10 @@ struct Status { } impl Status { + // new needs to be called once per second to be useful for the Bank + // 1M TPS * 1s (length of block in sigs) == 1M items in filter + // 1.0E-8 false positive rate + // https://hur.st/bloomfilter/?n=1000000&p=1.0E-8&m=&k= fn new(blockhash: &Hash) -> Self { let keys = (0..27).map(|i| blockhash.hash_at_index(i)).collect(); Status {