Skip to content

Commit

Permalink
Merge pull request #269 from PeggyJV/zaki/handle_proposal_error
Browse files Browse the repository at this point in the history
On an error querying a proposal just log the error and continue rathe…
  • Loading branch information
zmanian authored Aug 9, 2024
2 parents b01c3ce + d4e7664 commit 2c312d0
Showing 1 changed file with 6 additions and 0 deletions.
6 changes: 6 additions & 0 deletions src/proposals.rs
Original file line number Diff line number Diff line change
Expand Up @@ -191,6 +191,12 @@ async fn poll_approved_proposals(

break;
}
} else if err.code() == Code::Unknown {
error!("error querying proposal {}: {}", proposal_id, err);

state.last_finalized_proposal_id = proposal_id;

continue;
} else {
return Err(proposal_processing_error(format!(
"error querying proposal {}: {}",
Expand Down

0 comments on commit 2c312d0

Please sign in to comment.