Skip to content

feat: db list paging#1542

Merged
onbjerg merged 3 commits intomainfrom
onbjerg/db-list-paging
Mar 2, 2023
Merged

feat: db list paging#1542
onbjerg merged 3 commits intomainfrom
onbjerg/db-list-paging

Conversation

@onbjerg
Copy link
Collaborator

@onbjerg onbjerg commented Feb 24, 2023

Adds paging to reth db list: left and right arrows go to prev/next page, and G lets you jump to a specific page (note: jumping far is super slow, so I would recommend not doing it)

I used this to explore the database a bit; it seems a lot of accounts we have written to the database are completely empty:

Screenshot from 2023-02-24 12-46-56

I'm not sure if there is a specific reason for this (i.e. if we have to), but if not, we should definitely remove these accounts.

@onbjerg onbjerg added C-enhancement New feature or request A-cli Related to the reth CLI labels Feb 24, 2023
@onbjerg
Copy link
Collaborator Author

onbjerg commented Feb 24, 2023

Hmm, actually, I think this might be a bug in the tool itself. Investigating

Edit: Does not seem to be a bug. We store a lot of data that we do not need to - I could not find any rules that would warrant us keeping this data around

Copy link
Member

@gakonst gakonst left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

good w/ me pending merge conflict @onbjerg - cc @rakita @joshieDo on the redundant empty writes, probably something we should fix earlier, let's track in issue for now?

onbjerg added 3 commits March 2, 2023 15:40
It is now possible to go to new pages in `reth db list`
using the left and right arrow keys, as well as skipping
to a specific page using `G`.
@onbjerg onbjerg force-pushed the onbjerg/db-list-paging branch from 342ae52 to 363e396 Compare March 2, 2023 14:40
@onbjerg
Copy link
Collaborator Author

onbjerg commented Mar 2, 2023

@gakonst We figured out that it was leftover state from before the state clearing EIP

@onbjerg onbjerg merged commit 5720ede into main Mar 2, 2023
@onbjerg onbjerg deleted the onbjerg/db-list-paging branch March 2, 2023 14:46
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

A-cli Related to the reth CLI C-enhancement New feature or request

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants