Delete commented out code

accountant crate shouldn't verify the log. Instead, it should
only add valid entries and leave verification to network nodes.
This commit is contained in:
Greg Fitzgerald 2018-03-02 08:51:27 -07:00
parent 1b77e8a69a
commit 684f4c59e0
1 changed files with 2 additions and 5 deletions

View File

@ -57,14 +57,11 @@ impl Accountant {
while let Ok(entry) = self.historian.receiver.try_recv() {
entries.push(entry);
}
// TODO: Does this cause the historian's channel to get blocked?
//use log::verify_slice_u64;
//println!("accountant: verifying {} entries...", entries.len());
//assert!(verify_slice_u64(&entries, &self.end_hash));
//println!("accountant: Done verifying {} entries.", entries.len());
if let Some(last_entry) = entries.last() {
self.end_hash = last_entry.end_hash;
}
for e in &entries {
self.process_event(&e.event);
}