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

Self-healing mechanism #126

Open
lok52 opened this issue Dec 30, 2022 · 0 comments
Open

Self-healing mechanism #126

lok52 opened this issue Dec 30, 2022 · 0 comments
Assignees
Labels
bug Something isn't working

Comments

@lok52
Copy link
Collaborator

lok52 commented Dec 30, 2022

Relayer error:

POOL WORKER: Job 2298: Send TX failed: Error: Returned error: {"jsonrpc":"2.0","id":0,"error":{"code":0,"message":""}} {"timestamp":"2022-12-30T17:08:30.309Z"}

RPC returned an error on transaction send, but for some reason it was accounted and mined. In this case relayer missed this tx and got incorrect nonce and state. We need a self-healing mechanism to prevent such rare cases and possible reorg issues as well.
Ideas:

  1. Backups Ways to improve relayer sync on startup #75
  2. Soft-rollbacks. This will help in case of messed up state, e.g. missing past transaction.
  3. Nonce reset.
@lok52 lok52 added the bug Something isn't working label Dec 30, 2022
@lok52 lok52 self-assigned this Dec 30, 2022
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

No branches or pull requests

1 participant