ethereum-optimism / optimism

Optimism is Ethereum, scaled.
https://optimism.io
MIT License
5.21k stars 2.99k forks source link

op-supervisor: Create logdb for each chain #11043

Closed ajsutton closed 2 days ago

ajsutton commented 3 days ago

Description

Updates op-supervisor so that it creates a logdb database for each chain it monitors. Pretty much entirely just wiring code and moving things around to make the chain ID available as needed. The NewBackend function is getting a bit complex for my liking but going with it for now as it is just the constructor so having wiring code in there isn't too bad and I'm keen to actually get a minimal pipeline hooked up end to end before trying to guess exactly where things will land.

Metadata