Merge pull request #61 from nicokoch/fix_53

Update previous state during compensation.
This commit is contained in:
Noa 2021-12-07 12:51:21 -06:00 committed by GitHub
commit 7b67bfe4e2
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -497,6 +497,7 @@ impl<'a> Iterator for FetchEventsSynced<'a> {
// first: check if we need to emit compensatory events due to a SYN_DROPPED we found in the // first: check if we need to emit compensatory events due to a SYN_DROPPED we found in the
// last batch of blocks // last batch of blocks
if let Some(ev) = compensate_events(&mut self.sync, &mut self.dev) { if let Some(ev) = compensate_events(&mut self.sync, &mut self.dev) {
self.dev.prev_state.process_event(ev);
return Some(ev); return Some(ev);
} }
let state = &mut self.dev.state; let state = &mut self.dev.state;