add doc that should have been copy-pasta'd from bench (#3389)
This commit is contained in:
parent
df9fd2bc0b
commit
3048de18bb
|
@ -24,6 +24,10 @@ struct Status<T> {
|
||||||
}
|
}
|
||||||
|
|
||||||
impl<T: Clone> Status<T> {
|
impl<T: Clone> Status<T> {
|
||||||
|
// 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 {
|
fn new(blockhash: &Hash) -> Self {
|
||||||
let keys = (0..27).map(|i| blockhash.hash_at_index(i)).collect();
|
let keys = (0..27).map(|i| blockhash.hash_at_index(i)).collect();
|
||||||
Status {
|
Status {
|
||||||
|
|
Loading…
Reference in New Issue