paradigmxyz / reth

Modular, contributor-friendly and blazing-fast implementation of the Ethereum protocol, in Rust
https://reth.rs/
Apache License 2.0
3.52k stars 906 forks source link

Database Migration Thread #8746

Open mattsse opened 3 weeks ago

mattsse commented 3 weeks ago

when we decouple disk writes from request handling, we need to take of disk writes from somewhere else.

This should be a standalone thread that performs disk operations on demand, by accessing and updating the tree state #8745

### Tasks
- [ ] https://github.com/paradigmxyz/reth/issues/9181
- [ ] https://github.com/paradigmxyz/reth/issues/7343
emhane commented 1 week ago

Ref https://github.com/sigp/lighthouse/blob/f1d88ba4b1256e084d3a2a547e0ce574b896246c/beacon_node/beacon_chain/src/migrate.rs#L383-L435