diff --git a/lib/block-listeners/cosmos-node-subscription.js b/lib/block-listeners/cosmos-node-subscription.js index 217e4c32d9..0bfa2d0400 100644 --- a/lib/block-listeners/cosmos-node-subscription.js +++ b/lib/block-listeners/cosmos-node-subscription.js @@ -7,7 +7,6 @@ const { const Sentry = require('@sentry/node') const database = require('../database') const config = require('../../config.js') -const { pollForValidators } = require('./emoney-release-validators-poller') const POLLING_INTERVAL = 1000 const EXPECTED_MAX_BLOCK_WINDOW = 120000 @@ -32,15 +31,6 @@ class CosmosNodeSubscription { } async pollForNewBlock() { - if (this.network.id === `emoney-mainnet`) { - const validators = await pollForValidators(this.network) - if (!validators || validators.length <= 0) { - setTimeout(async () => { - this.pollForNewBlock() - }, POLLING_INTERVAL) - return - } - } const cosmosAPI = new this.CosmosApiClass(this.network, this.store) await this.checkForNewBlock(cosmosAPI) diff --git a/lib/block-listeners/emoney-release-validators-poller.js b/lib/block-listeners/emoney-release-validators-poller.js deleted file mode 100644 index 208c9e8d59..0000000000 --- a/lib/block-listeners/emoney-release-validators-poller.js +++ /dev/null @@ -1,8 +0,0 @@ -async function pollForValidators(eMoneyNetwork) { - const { result } = await global.fetch( - `${eMoneyNetwork.api_url}/staking/validators` - ) - return result -} - -module.exports = { pollForValidators }