Skip to content
New issue

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

Fix failed sync of evm wallets #668

Merged
merged 1 commit into from
Nov 13, 2023
Merged

Fix failed sync of evm wallets #668

merged 1 commit into from
Nov 13, 2023

Conversation

paullinator
Copy link
Member

@paullinator paullinator commented Nov 12, 2023

CHANGELOG

Does this branch warrant an entry to the CHANGELOG?

  • Yes
  • No

Dependencies

none

Description

none

@@ -1733,14 +1739,22 @@ export class EthereumNetwork {
this.ethNeeds.blockHeightLastChecked,
BLOCKHEIGHT_POLL_MILLISECONDS,
preUpdateBlockHeight,
async () => await this.check('blockheight')
async () => {
console.log(`nonce`)
Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Cleanup console.logs here. Or if you want a real log for the checker, then move it into the check implementation?

Copy link
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

cleaned up

Comment on lines +1540 to +1546
let rpcServerWithApiKey: string
try {
rpcServerWithApiKey = this.addRpcApiKey(rpcServer)
} catch (e) {
// addRpcApiKey can throw if there's a missing apikey. skip this rpcServer
return
}
Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Hmm, if all RPC servers fail on this adding of key step, then this means balance checking via RPC is not possible. There are other methods to get balances which wont be used because of the condition on line 1787. This can surface itself as a bug as well, so this only partly fixes the problem.

@samholmes samholmes merged commit deecf06 into master Nov 13, 2023
2 of 3 checks passed
@samholmes samholmes deleted the paul/fixEvmSync branch November 13, 2023 22:33
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants