From 02fd545b8aaa2419c43a40f51205c126b9c6d77a Mon Sep 17 00:00:00 2001 From: Kwun Yeung Date: Tue, 5 May 2020 12:26:07 +0000 Subject: [PATCH] update validator status value --- CHANGELOG.md | 2 +- imports/api/validators/server/publications.js | 2 +- imports/ui/home/TopValidatorsContainer.js | 2 +- imports/ui/validators/ListContainer.js | 2 +- 4 files changed, 4 insertions(+), 4 deletions(-) diff --git a/CHANGELOG.md b/CHANGELOG.md index b987be8f8..d5f6841d9 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -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 diff --git a/imports/api/validators/server/publications.js b/imports/api/validators/server/publications.js index e3e1870fb..a2adcc00d 100644 --- a/imports/api/validators/server/publications.js +++ b/imports/api/validators/server/publications.js @@ -25,7 +25,7 @@ publishComposite('validators.firstSeen',{ Meteor.publish('validators.voting_power', function(){ return Validators.find({ - status: 2, + status: 3, jailed:false },{ sort:{ diff --git a/imports/ui/home/TopValidatorsContainer.js b/imports/ui/home/TopValidatorsContainer.js index 6808254f6..920b590d1 100644 --- a/imports/ui/home/TopValidatorsContainer.js +++ b/imports/ui/home/TopValidatorsContainer.js @@ -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; diff --git a/imports/ui/validators/ListContainer.js b/imports/ui/validators/ListContainer.js index 31f06b2ed..6c55274b7 100644 --- a/imports/ui/validators/ListContainer.js +++ b/imports/ui/validators/ListContainer.js @@ -26,7 +26,7 @@ export default ValidatorListContainer = withTracker((props) => { } else{ validatorsCond = { - jailed: false, + // jailed: false, status: 3 } }