Skip to content
This repository has been archived by the owner on Dec 1, 2021. It is now read-only.

Add Meteor.settings.validatorStatus0 #317

Closed

Conversation

michaelfig
Copy link
Contributor

Description

Hi @kwunyeung,

This PR adds a generic Meteor.settings.validatorStatus0 configuration, whose default_settings.json value is 0. That means validator status is 0, 1, or 2.

For IBC-alpha, I'm setting this value to 1, so that validator status is 1, 2, 3.

Also, I noticed that validatorData.jailed isundefined on the ibc-alpha branch. I've hacked around this in this PR.

Fixes #311

Checklist

  • Targeted PR against correct branch.
  • Linked to Github issue with discussion and accepted design OR link to spec that describes this work.
  • Added an entry to the CHANGELOG.md file.
  • Re-reviewed Files changed in the Github PR explorer.

@michaelfig michaelfig force-pushed the validatorStatus0 branch 2 times, most recently from 2180db4 to 533362a Compare March 13, 2020 00:17
validator.jailed = validatorData.jailed;

// validatorData.jailed may be undefined in cosmos-sdk v0.39.0.
validator.jailed = !!validatorData.jailed;
Copy link
Contributor Author

Choose a reason for hiding this comment

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

@kwunyeung, this single line was the main problem I ran into after the status changes. validatorData.jailed is undefined instead of false. This is a consequence of ibc-alpha moving to protobuf3 instead of Amino.

Copy link
Member

Choose a reason for hiding this comment

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

That's actually a good move.

@kwunyeung kwunyeung changed the base branch from kwun/sdk-v0.38.x to kwun/ibc-alpha March 13, 2020 04:19
@kwunyeung
Copy link
Member

Right. I forgot to update the publications and some interfaces. We will have test cases for the frontend in the coming revamp.

I point the PR to the ibc-alpha branch as the v0.38 still using the old values and it runs well on Demsos and StraightEdge.

By default, set this parameter to 0, so validator status can be
0, 1, 2.

For the ibc-alpha branch (and probably sdk v0.39.x), we need to
set it to 1, so validator status is 1, 2, 3.
@michaelfig
Copy link
Contributor Author

Withdrawn in favour of #357.

@michaelfig michaelfig closed this May 24, 2020
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants