Skip to content

Conversation

@JuArce
Copy link
Contributor

@JuArce JuArce commented Nov 3, 2025

This PR makes some changes to how the blocks are fetched:

  • To keep a buffer of 10 blocks to avoid possible missing events.
  • Makes public the fetch_logs to be called on the iex terminal when fetching the last N logs.
  • Moves the claim counter increment to the proofs module update_proof_status_claimed method, to avoid having the increment call each time the claim status is set.

To fetch all events on devnet, you can use the following command on the iex terminal:

ZkArcade.SubmissionPoller.handle_info(:poll, %{from_block: 0})

Note that, since we are in devnet, we use the zero block, but in mainnet, we should fetch it from network.

@maximopalopoli maximopalopoli marked this pull request as ready for review November 4, 2025 18:01
@maximopalopoli maximopalopoli self-assigned this Nov 4, 2025
Copy link
Contributor Author

@JuArce JuArce left a comment

Choose a reason for hiding this comment

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

LGTM

@MauroToscano MauroToscano merged commit d0be336 into main Nov 4, 2025
2 checks passed
@MauroToscano MauroToscano deleted the improve_event_polling branch November 4, 2025 21:25
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

Successfully merging this pull request may close these issues.

4 participants