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

Commit

Permalink
update validator status value
Browse files Browse the repository at this point in the history
  • Loading branch information
kwunyeung committed May 5, 2020
1 parent 145d749 commit 02fd545
Show file tree
Hide file tree
Showing 4 changed files with 4 additions and 4 deletions.
2 changes: 1 addition & 1 deletion CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
# Changelog

## [Unreleased]

* Update validator status
* [#306] Display errors with SDK v0.38 format
* [#301] Using Jazzicon as avatar if no Keybase avatar exists
* [#297] Prettify unrecognized JSON messages
Expand Down
2 changes: 1 addition & 1 deletion imports/api/validators/server/publications.js
Original file line number Diff line number Diff line change
Expand Up @@ -25,7 +25,7 @@ publishComposite('validators.firstSeen',{

Meteor.publish('validators.voting_power', function(){
return Validators.find({
status: 2,
status: 3,
jailed:false
},{
sort:{
Expand Down
2 changes: 1 addition & 1 deletion imports/ui/home/TopValidatorsContainer.js
Original file line number Diff line number Diff line change
Expand Up @@ -21,7 +21,7 @@ export default TopValidatorsContainer = withTracker(() => {

if (Meteor.isServer || !loading){
status = Chain.findOne({chainId:Meteor.settings.public.chainId});
validators = Validators.find({status: 2, jailed:false}).fetch();
validators = Validators.find({status: 3}).fetch();

if (Meteor.isServer){
// loading = false;
Expand Down
2 changes: 1 addition & 1 deletion imports/ui/validators/ListContainer.js
Original file line number Diff line number Diff line change
Expand Up @@ -26,7 +26,7 @@ export default ValidatorListContainer = withTracker((props) => {
}
else{
validatorsCond = {
jailed: false,
// jailed: false,
status: 3
}
}
Expand Down

0 comments on commit 02fd545

Please sign in to comment.