ethereum-optimism / optimism-ts-services

[Optimism] Client-Side Services
15 stars 6 forks source link

Improve message relayer efficiency, improve logs #18

Closed K-Ho closed 3 years ago

K-Ho commented 3 years ago

Drastically improves the efficiency of the message relayer - Previously, would query events from l1BlockOffset to latest blockNumber after every batch was found. This change would query events from l1BlockOffset until finding the right state batch. Then the relayer would store the last queried L1 block and look for the next state batch starting at the last queried L1 block.