Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Misbehavior check triggered by UpdateClient event may run for a long time #1417

Closed
1 of 5 tasks
ancazamfir opened this issue Oct 4, 2021 · 0 comments · Fixed by #1512
Closed
1 of 5 tasks

Misbehavior check triggered by UpdateClient event may run for a long time #1417

ancazamfir opened this issue Oct 4, 2021 · 0 comments · Fixed by #1512
Labels
I: logic Internal: related to the relaying logic O: performance Objective: cause to improve performance
Milestone

Comments

@ancazamfir
Copy link
Collaborator

Crate

relayer

Summary of Bug

Function detect_misbehaviour() calls:
https://github.com/informalsystems/ibc-rs/blob/5d53e5279d765024913494a129c55e9bf780c409/relayer/src/foreign_client.rs#L958

in all invocations. This may result in long processing times for misbehaviour detection for a specific UpdateClient. It should only be needed when hermes does a first crawl/ verification of all consensus states on start. I think it should not be required after that.

Version

master

Steps to Reproduce

The delay should be noticeable in the client worker processing of UpdateClient events for clients created on cosmoshub and that are heavily used (e.g. the client used by the osmosis - hub channel). Logs should show a big misbehaviour check time.

Acceptance Criteria

Reduce misbehaviour check duration.


For Admin Use

  • Not duplicate issue
  • Appropriate labels applied
  • Appropriate milestone (priority) applied
  • Appropriate contributors tagged
  • Contributor assigned/self-assigned
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
I: logic Internal: related to the relaying logic O: performance Objective: cause to improve performance
Projects
None yet
2 participants