-
Notifications
You must be signed in to change notification settings - Fork 1.2k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Feature: Support db get for duptables (CLI) #4653
Conversation
crates/storage/db/src/tables/mod.rs
Outdated
(SyncStage, TableType::Table), | ||
(SyncStageProgress, TableType::Table), | ||
(PruneCheckpoints, TableType::Table) | ||
(CanonicalHeaders, TableType::Table, view), |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
guess this is ok, wish we didn't have to though
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Me too, I was trying to find a better way to refactor the macro. I am unhappy with this way but I lack ideas. I'm up for suggestions tho
@onbjerg How could I test this? I am new to the project so I am unfamiliar with the workflows. |
@pyropy find a table with duplicated keys and try to get the value with the subkey with your newly created command. I don't know if this is enough for testing(if you should write automated tests - that's the team decision). Before this command, |
Codecov ReportAttention:
Additional details and impacted files
... and 428 files with indirect coverage changes
Flags with carried forward coverage won't be shown. Click here to find out more.
|
@pyropy you can simply initialize a holesky node and query for the storage slots of the deposit contract. do you have availability to bring this PR to completion? |
Hey yes I'll do it over the weekend, I am in on-site camp with my company so I cannot do it ATM. |
c60fea2
to
1c53ade
Compare
1c53ade
to
8e91e9d
Compare
@rkrasiuk I've synced holesky network and tried out the cli, here's the example for
|
Hi @pyropy wonder if there's any next steps for this PR? Thanks for taking the time! |
Hey I think it should be good. If you can give it a review you I'd appreciate it 🙏🏻 |
@pyropy thanks for the PR, we'll be merging it shortly. refactored the tables macro to a bit more amicable format |
Seen your refactor, good job. This is a really good way for me to learn how to do rust properly as I mainly write golang. |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
LGTM. Fmt nits. IMO the two table macros should be merged in a follow-up.
Continues upon #2897 . Closes #2836