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

Domain type & semantic validation of max_tx_size and max_num_msg config options #1246

Merged
merged 10 commits into from
Jul 29, 2021

Conversation

adizere
Copy link
Member

@adizere adizere commented Jul 28, 2021

Closes #1245

Description


For contributor use:

  • Added a changelog entry, using unclog.
  • 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 changed the title Domain type & health checkup for Hermes max_tx_size and max_num_msg Domain type & semantic validation of max_tx_size and max_num_msg config options Jul 29, 2021
@romac romac self-assigned this Jul 29, 2021
@romac romac added this to the 07.2021 milestone Jul 29, 2021
@romac romac requested a review from hu55a1n1 July 29, 2021 11:40
Copy link
Member

@hu55a1n1 hu55a1n1 left a comment

Choose a reason for hiding this comment

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

Thanks @adizere & @romac! LGTM! 👌

impl Default for MaxMsgNum {
fn default() -> Self {
Self(DEFAULT_MAX_MSG_NUM)
Self(Self::DEFAULT)
Copy link
Member Author

Choose a reason for hiding this comment

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

Neat!

relayer/src/chain/cosmos.rs Outdated Show resolved Hide resolved
@romac romac merged commit 1b3482e into master Jul 29, 2021
@romac romac deleted the adi/1245_config_types branch July 29, 2021 14:02
hu55a1n1 pushed a commit to hu55a1n1/hermes that referenced this pull request Sep 13, 2022
…config options (informalsystems#1246)

* Fix for informalsystems#1245

* Split out params semantic validation from health check

* Fixup changelog entry

* Add .changelog entry

* Extract max fraction of genesis block max size into a consant

* Doc comments for constants

* Harmonize error messages

* Improve error message layout

* Comments & output consistent with parameters

* Final aestetic change

Co-authored-by: Romain Ruetschi <romain@informal.systems>
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.

Absurd values for max_msg_num and max_tx_size
3 participants