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

Ensure correct TrustThresholdFraction construction #934

Merged
merged 7 commits into from
Jul 20, 2021

Conversation

thanethomson
Copy link
Contributor

Closes #924

  • Referenced an issue explaining the need for the change
  • Updated all relevant documentation in docs
  • Updated all code comments where relevant
  • Wrote tests
  • Added entry in .changelog/

@thanethomson thanethomson marked this pull request as ready for review July 19, 2021 21:11
pub struct TrustThresholdFraction {
/// Numerator of the trust threshold fraction
#[serde(with = "serializers::from_str")]
Copy link
Member

Choose a reason for hiding this comment

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

Do we know why we are serializing the numerator and denominator as strings?

Copy link
Contributor Author

Choose a reason for hiding this comment

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

They're u64, which can only fully be represented in JSON by a string afaik.

tendermint/src/trust_threshold.rs Outdated Show resolved Hide resolved
tendermint/src/trust_threshold.rs Show resolved Hide resolved
tools/kvstore-test/tests/light-client.rs Show resolved Hide resolved
@thanethomson thanethomson merged commit f46cf0f into master Jul 20, 2021
@thanethomson thanethomson deleted the thane/924-trust-thresh branch July 20, 2021 14:23
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.

Trust threshold validation
3 participants