matter-labs / era-test-node

In-memory node that can be used for integration testing and debugging.
https://matter-labs.github.io/era-test-node
Apache License 2.0
313 stars 76 forks source link

refactor: move time management into its own component #385

Closed itegulov closed 1 week ago

itegulov commented 2 weeks ago

What :computer:

Makes time management less rigid by moving the logic into its own component.

Closes #386

Why :hand:

Some flows depend on getting unique timestamps (e.g. new block, new batch, etc) and they really shouldn't hold a mutable reference to the node's internal state all the time.