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

Detect unsynchronized state of RPC node to use the fallback #526

Open
akolotov opened this issue Mar 5, 2021 · 0 comments
Open

Detect unsynchronized state of RPC node to use the fallback #526

akolotov opened this issue Mar 5, 2021 · 0 comments
Labels
bug Something isn't working oracle related to TokenBridge oracle

Comments

@akolotov
Copy link
Collaborator

akolotov commented Mar 5, 2021

The currently the oracle is not able to identify that requesting a data from an unsynchronized RPC endpoint that is why it could lead to some undesirable issues. For example, the sender worker will try to call eth_getTransactionsCount to get the current nonce to prepare a transaction but the value will be lower than the actual nonce stored in the blockchain that is why the transaction disappears after sending (an error that the nonce is lower than expected will not be raised since the transaction will be send to unsynchronized enpoint).

Consider to implement to mechanism to discover that the RPC endpoint is unsynchronized, report about it in the logs, and use a fallback RPC in the operations. Another requirement to this feature is to make as less RPCs requests as possible identify the unsynchronized state.

@akolotov akolotov added bug Something isn't working oracle related to TokenBridge oracle labels Mar 5, 2021
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working oracle related to TokenBridge oracle
Projects
None yet
Development

No branches or pull requests

1 participant