fix(chainsync): Stop the consumer machine when intersect is not found (#14)

This commit is contained in:
Santiago Carmuega 2022-01-02 10:11:13 -03:00 committed by GitHub
parent 31f29b11eb
commit 38ae2d3aee
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -131,7 +131,7 @@ where
Ok(Self {
tip: Some(tip),
cursor: None,
state: State::Idle,
state: State::Done,
..self
})
}
@ -145,7 +145,7 @@ where
trace!("content: {:?}", content);
}
debug!("reporint block to observer");
debug!("reporting block to observer");
self.observer.on_block(&self.cursor, &content)?;
Ok(Self {