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

Refactor block loop #921

Closed
alexcos20 opened this issue Oct 14, 2022 · 0 comments · Fixed by #928
Closed

Refactor block loop #921

alexcos20 opened this issue Oct 14, 2022 · 0 comments · Fixed by #928
Assignees
Labels
Priority: Critical Type: Bug Something isn't working

Comments

@alexcos20
Copy link
Member

alexcos20 commented Oct 14, 2022

The current block processing loop is having a lot of issues because:

  • uses unnecessary web3 calls when splitting in blocks (what if OrderStarted passes, but ExchangeCreated fails? it will split the chunk in two, and use two additional calls again for OrderStarted, which worked fine)
  • the events are not processed in the right order (blockchain order), but a hardcoded order, which may lead into issues (assets not existing when transfer is detected, etc)

Proposal:

  • refactor loop
@alexcos20 alexcos20 added Type: Bug Something isn't working Priority: Critical labels Oct 14, 2022
@alexcos20 alexcos20 self-assigned this Oct 14, 2022
@LoznianuAnamaria LoznianuAnamaria linked a pull request Nov 7, 2022 that will close this issue
3 tasks
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Priority: Critical Type: Bug Something isn't working
Projects
None yet
Development

Successfully merging a pull request may close this issue.

1 participant