Make num_hashes mean the num_hashes since the last ID

Before this change, num_hashes meant the number of hashes since
the last ID, minus any hashing done on the event data. It made
no difference for Tick events, but logged Transaction events with
one less hash than actually occurred.
This commit is contained in:
Greg Fitzgerald
2018-03-04 09:52:33 -07:00
parent 8503a0a58f
commit ff82fbf112
4 changed files with 15 additions and 10 deletions

View File

@ -72,7 +72,7 @@ Running the program should produce a log similar to:
```rust
Entry { num_hashes: 0, id: [0, ...], event: Tick }
Entry { num_hashes: 2, id: [67, ...], event: Transaction { data: [37, ...] } }
Entry { num_hashes: 3, id: [67, ...], event: Transaction { data: [37, ...] } }
Entry { num_hashes: 3, id: [123, ...], event: Tick }
```