-
Notifications
You must be signed in to change notification settings - Fork 39
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
Conversation
09c7ad5
to
ccd3cbf
Compare
src/ethereum/EthereumNetwork.ts
Outdated
@@ -1733,14 +1739,22 @@ export class EthereumNetwork { | |||
this.ethNeeds.blockHeightLastChecked, | |||
BLOCKHEIGHT_POLL_MILLISECONDS, | |||
preUpdateBlockHeight, | |||
async () => await this.check('blockheight') | |||
async () => { | |||
console.log(`nonce`) |
There was a problem hiding this comment.
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?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
cleaned up
let rpcServerWithApiKey: string | ||
try { | ||
rpcServerWithApiKey = this.addRpcApiKey(rpcServer) | ||
} catch (e) { | ||
// addRpcApiKey can throw if there's a missing apikey. skip this rpcServer | ||
return | ||
} |
There was a problem hiding this comment.
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.
ccd3cbf
to
d63585c
Compare
CHANGELOG
Does this branch warrant an entry to the CHANGELOG?
Dependencies
noneDescription
none