Skip to content

Commit

Permalink
Log tendermint errors as they occur instead of silently dropping them
Browse files Browse the repository at this point in the history
  • Loading branch information
nibhar committed Nov 22, 2021
1 parent cf97ec0 commit 03c3c2b
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion validator/src/validator.rs
Original file line number Diff line number Diff line change
Expand Up @@ -407,7 +407,9 @@ impl<TNetwork: Network, TValidatorNetwork: ValidatorNetwork>
let macro_producer = self.macro_producer.as_mut().unwrap();
while let Poll::Ready(Some(event)) = macro_producer.poll_next_unpin(cx) {
match event {
TendermintReturn::Error(_err) => {}
TendermintReturn::Error(err) => {
log::error!("Tendermint Returned an Error: {:?}", err);
}
TendermintReturn::Result(block) => {
// If the event is a result meaning the next macro block was produced we push it onto our local chain
let block_copy = block.clone();
Expand Down

0 comments on commit 03c3c2b

Please sign in to comment.