Delete the Discovery event

Not useful to the accountant.
This commit is contained in:
Greg Fitzgerald
2018-03-01 17:01:55 -07:00
parent f705202381
commit 9e16937914
5 changed files with 32 additions and 21 deletions

View File

@@ -45,7 +45,7 @@ use std::sync::mpsc::SendError;
fn create_log(hist: &Historian) -> Result<(), SendError<Event>> {
sleep(Duration::from_millis(15));
let data = Sha256Hash::default();
hist.sender.send(Event::Discovery { data })?;
hist.sender.send(Event::Claim { data })?;
sleep(Duration::from_millis(10));
Ok(())
}
@@ -70,7 +70,7 @@ Running the program should produce a log similar to:
```rust
Entry { num_hashes: 0, end_hash: [0, ...], event: Tick }
Entry { num_hashes: 2, end_hash: [67, ...], event: Discovery { data: [37, ...] } }
Entry { num_hashes: 2, end_hash: [67, ...], event: Claim { data: [37, ...] } }
Entry { num_hashes: 3, end_hash: [123, ...], event: Tick }
```