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

Override the light client store with the in-memory one in all commands except the relayer loop #562

Merged
merged 5 commits into from
Jan 27, 2021

Conversation

romac
Copy link
Member

@romac romac commented Jan 27, 2021

Closes: #501

Description

Override the configured light store with the in-memory implementation in all standalone commands, thus reserving the on-disk store for the main relayer loop (start command).

This allows running one-off commands concurrently the main relayer loop, at the expense of performance for those commands as they will start from an empty light store every time.

This is currently good enough for v0.1.0, but be re-evaluated for v0.2.0.

This was tested by launching the relayer loop and running multiple tx raw update-client ibc-0 ibc-1 07-tendermint-0 commands concurrently.


For contributor use:

  • Updated the Unreleased section of CHANGELOG.md with the issue.
  • If applicable: Unit tests written, added test to CI.
  • Linked to Github issue with discussion and accepted design OR link to spec that describes this work.
  • Updated relevant documentation (docs/) and code comments.
  • Re-reviewed Files changed in the Github PR explorer.

@romac romac added this to the v0.1.0 milestone Jan 27, 2021
@romac romac requested review from adizere and ancazamfir January 27, 2021 12:44
Copy link
Collaborator

@ancazamfir ancazamfir left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Fantastic! Works beautifully and reproduced a bug I was expecting in the relayer loop retry part. Let's merge this, thanks Romain!

@romac romac merged commit a30554a into master Jan 27, 2021
@romac romac deleted the romac/cmd-memory-store branch January 27, 2021 17:24
hu55a1n1 pushed a commit to hu55a1n1/hermes that referenced this pull request Sep 13, 2022
…s except the relayer loop (informalsystems#562)

* Formatting

* Override the light client store with the in-memory one in all commands except the relayer loop

* Update changelog

* Cleanup
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 this pull request may close these issues.

Cannot run relayer commands concurrently
2 participants