paradigmxyz / reth

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

Add pretty printing for pruner stats #12502

Open mattsse opened 22 hours ago

mattsse commented 22 hours ago

Describe the feature

desired format looks like

[(table=Headers, pruned=15, status=Finished), (table=Transactions, pruned=780, status=Finished)]

TODO

https://github.com/paradigmxyz/reth/blob/03f3646355529554e2a38f2a821881425bc04531/crates/prune/types/src/pruner.rs#L21-L21

https://github.com/paradigmxyz/reth/blob/03f3646355529554e2a38f2a821881425bc04531/crates/node/events/src/node.rs#L311-L311

Additional context

No response

syjn99 commented 22 hours ago

I'd like to take this one