aquarius icon indicating copy to clipboard operation
aquarius copied to clipboard

Refactor block loop

Open alexcos20 opened this issue 2 years ago • 0 comments

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 avatar Oct 14 '22 06:10 alexcos20