We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
run-command: yarn validatorRelayer $ETH_NETWORK
yarn validatorRelayer $ETH_NETWORK
The daemon was stalled and stopped printing new blocknumber like 1641852906 At blocknumber: 10937741 {}.
1641852906 At blocknumber: 10937741 {}
Could we add a try/catch for below functions, it seems that the logger printed At blocknumber and then hang forever.
At blocknumber
Two potential calling functions caused this:
await api.rpc.chain.subscribeFinalizedHeads
await api.query.system.events.at(blockHash);
await api.rpc.chain .subscribeFinalizedHeads(async (head) => { const blockNumber = head.number.toNumber(); logger.info(`At blocknumber: ${blockNumber}`); const blockHash = head.hash.toString(); const events = await api.query.system.events.at(blockHash); events.map(async ({event}) => { const { section, method, data } = event; if (section === 'ethBridge' && method === 'AuthoritySetChange') { const dataFetched = data.toHuman(); const eventIdFound = dataFetched[0]; const newValidatorSetId = parseInt(dataFetched[1]); logger.info(`IMP Event found at block ${blockNumber} hash ${blockHash} event id ${eventIdFound}`); await getEventPoofAndSubmit(api, eventIdFound, bridge, wallet, newValidatorSetId.toString(), blockHash, infuraProvider); } }) });
The text was updated successfully, but these errors were encountered:
jordy25519
KarishmaBothara
No branches or pull requests
run-command:
yarn validatorRelayer $ETH_NETWORK
The daemon was stalled and stopped printing new blocknumber like
1641852906 At blocknumber: 10937741 {}
.Could we add a try/catch for below functions, it seems that the logger printed
At blocknumber
and then hang forever.Two potential calling functions caused this:
await api.rpc.chain.subscribeFinalizedHeads
failed, and did not catch the errorawait api.query.system.events.at(blockHash);
failed, and did not catch the errorThe text was updated successfully, but these errors were encountered: