We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 3970614 commit d2a3596Copy full SHA for d2a3596
federator/src/lib/utils.js
@@ -148,10 +148,10 @@ function checkIfItsInRSK(chainId = -1) {
148
chainId === 33;
149
}
150
151
-async function getHeartbeatPollingInterval(host) {
+async function getHeartbeatPollingInterval({host, runHeartbeatEvery}) {
152
const web3 = new Web3(host);
153
const chainId = await web3.eth.net.getId();
154
- const pollingInterval = [1, 30, 31, 42].includes(chainId) ? 1000 * 60 * 60 : null;
+ const pollingInterval = [30, 31].includes(chainId) ? 1000 * 60 * 60 : runHeartbeatEvery * 1000 * 60;
155
return pollingInterval;
156
157
0 commit comments