forked from LaconicNetwork/cosmos-explorer
remove validator cache
This commit is contained in:
+2
-1
@@ -185,7 +185,8 @@ export default class ChainFetch {
|
||||
async getValidatorList(config = null) {
|
||||
return this.get('/cosmos/staking/v1beta1/validators?pagination.limit=200&status=BOND_STATUS_BONDED', config).then(data => {
|
||||
const vals = commonProcess(data.validators).map(i => new Validator().init(i))
|
||||
localStorage.setItem(`validators-${this.config.chain_name}`, JSON.stringify(vals))
|
||||
// disable cache
|
||||
// localStorage.setItem(`validators-${this.config.chain_name}`, JSON.stringify(vals))
|
||||
return vals
|
||||
})
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user