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: stop bot in case of tx errors #9421

Open
wants to merge 5 commits into
base: master
Choose a base branch
from
Open

fix: stop bot in case of tx errors #9421

wants to merge 5 commits into from

Conversation

alexghr
Copy link
Contributor

@alexghr alexghr commented Oct 25, 2024

This PR contains a couple of fixes for the network occasionally stopping when run for a longer period of time:

  • it restarts the bot when the chain gets pruned. This is necessary because the PXE does not react to reorgs. When one happens the bot's PXE's database is deleted and it starts again
  • it handles reorgs in the p2p-client such that it's able to consume the new chain after a prune.

@alexghr alexghr force-pushed the ag/restart-bot branch 2 times, most recently from 0a5d17d to cbbce08 Compare October 25, 2024 23:31
@alexghr alexghr added the e2e-all CI: Enables this CI job. label Oct 26, 2024
@@ -103,8 +105,8 @@ describe('In-Memory P2P Client', () => {
await client.start();
expect(client.isReady()).toEqual(true);

await client.stop();
expect(client.isReady()).toEqual(false);
// await client.stop();
Copy link
Collaborator

Choose a reason for hiding this comment

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

Should this be commented out?

);
await this.txPool.deleteTxs(txsToDelete);
await this.synchedLatestBlockNumber.set(latestBlock);
await this.synchedProvenBlockNumber.set(latestBlock);
Copy link
Collaborator

Choose a reason for hiding this comment

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

I'm not sure we should be setting the synched proven block number here. This should only be done via proven chain events shouldn't it?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
e2e-all CI: Enables this CI job.
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants