-
Notifications
You must be signed in to change notification settings - Fork 632
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
[Flat storage] adding debug tool for flat storage #8531
Conversation
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, leaving some readability suggestions:
tools/flat-storage/Cargo.toml
Outdated
protocol_feature_flat_state = ["nearcore/protocol_feature_flat_state", | ||
"near-chain/protocol_feature_flat_state", | ||
"near-store/protocol_feature_flat_state",] |
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.
cargo fmt?
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.
done.
tools/flat-storage/src/lib.rs
Outdated
@@ -0,0 +1,2 @@ | |||
#[cfg(feature = "protocol_feature_flat_state")] | |||
pub mod flat; |
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.
Name of module is a bit confusing, maybe commands.rs
?
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.
ok
Couple basic debug commands for flat storage:
Example usage (verify shard 0):
Currently it looks only on the main column (it doesn't display any information about the deltas)