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

Add option to specify which events to listen for in listen command #550

Closed
5 tasks
ancazamfir opened this issue Jan 25, 2021 · 0 comments · Fixed by #804
Closed
5 tasks

Add option to specify which events to listen for in listen command #550

ancazamfir opened this issue Jan 25, 2021 · 0 comments · Fixed by #804
Assignees
Milestone

Comments

@ancazamfir
Copy link
Collaborator

ancazamfir commented Jan 25, 2021

Crate

ibc-relayer-cli

Summary

Add flag to rrly -c loop_config.toml listen ibc-0 command to specify which events to listen for.

Problem Definition

We are often not interested in NewBlock events, and would like to filter them out to only keep Tx events.

Proposal

USAGE:
    hermes listen <OPTIONS>

DESCRIPTION:
    Listen to and display IBC events emitted by a chain

POSITIONAL ARGUMENTS:
    chain_id                  Identifier of the chain to listen for events from

FLAGS:
    -e, --event EVENT         Add an event type to listen for, can be repeated. Listen for all events by default (available: Tx, NewBlock)

Listen for default events:

$ hermes listen ibc-0
[info ] Listening for events `NewBlock, Tx` on 'ibc-0'...

Listen for NewBlock event only:

$ hermes listen ibc-0 -e NewBlock
[info ] Listening for events `NewBlock` on 'ibc-0'...

Listen for NewBlock and Tx events:

$ hermes listen ibc-0 -e NewBlock -e Tx
[info ] Listening for events `NewBlock, Tx` on 'ibc-0'...

For Admin Use

  • Not duplicate issue
  • Appropriate labels applied
  • Appropriate milestone (priority) applied
  • Appropriate contributors tagged
  • Contributor assigned/self-assigned
@ancazamfir ancazamfir added this to the v0.1.1 milestone Jan 25, 2021
@adizere adizere modified the milestones: v0.1.1, 03.2021 Feb 18, 2021
@romac romac changed the title Add option to listen command to filter the NewBlock events Add option to specify which events to listen for in listen command Apr 7, 2021
@romac romac self-assigned this Apr 7, 2021
@romac romac closed this as completed in #804 Apr 7, 2021
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging a pull request may close this issue.

3 participants