projects
/
dnsseed-rust
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
Store nodes that timed out in a rolling bloom filter
[dnsseed-rust]
/
src
/
printer.rs
diff --git
a/src/printer.rs
b/src/printer.rs
index e16bfbb42bb644e3dff324bb10333453261f6b0f..c20b925e7f5f83d14316ca9d4a31926dc4c5e9dd 100644
(file)
--- a/
src/printer.rs
+++ b/
src/printer.rs
@@
-65,9
+65,14
@@
impl Printer {
store.get_node_count(AddressState::from_num(i).unwrap())
).as_bytes()).expect("stdout broken?");
}
store.get_node_count(AddressState::from_num(i).unwrap())
).as_bytes()).expect("stdout broken?");
}
+ let generations = store.get_bloom_node_count();
+ out.write_all(b"Bloom filter generations contain:").expect("stdout broken?");
+ for generation in &generations {
+ out.write_all(format!(" {}", generation).as_bytes()).expect("stdout broken?");
+ }
out.write_all(format!(
out.write_all(format!(
- "\nCurrent connections open/in progress: {}\n", stats.connection_count).as_bytes()).expect("stdout broken?");
+ "\n
\n
Current connections open/in progress: {}\n", stats.connection_count).as_bytes()).expect("stdout broken?");
out.write_all(format!(
"Current block count: {}\n", stats.header_count).as_bytes()).expect("stdout broken?");
out.write_all(format!(
"Current block count: {}\n", stats.header_count).as_bytes()).expect("stdout broken?");