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

[RPC] witness generation causes RPC node latest block/batch information to drift #1621

Open
hexoscott opened this issue Jan 10, 2025 · 2 comments
Assignees

Comments

@hexoscott
Copy link
Collaborator

It appears that asking an RPC node for latest block/batch information whilst an unwind is happening is causing the responses to also roll back.

This is happening when the network is halted at the sequencer so there are no new blocks being produced.

@hexoscott hexoscott self-assigned this Jan 10, 2025
@hexoscott
Copy link
Collaborator Author

I have attempted the following local setup:

  • 1 sequencer
  • 1 RPC node consuming DS from sequencer
  • Spammer script to keep sending some EOA transfers to the sequencer
  • Bash script to keep calling eth_blockNumber and zkevm_batchNumber on repeat

With this running I can call for the witness for batch 2 which performs a full unwind of a number of batches and the script reporting the latest block and batch doesn't alter the output during this process.

@hexoscott
Copy link
Collaborator Author

After inspecting the logs of the RPC node from this test where it was first observed , this is related to a problem that is being fixed elsewhere that causes the RPC to go into an unwind loop when the sequencer is halted.

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

No branches or pull requests

1 participant