-
Notifications
You must be signed in to change notification settings - Fork 17
SHARD-2719: add localStateConsistencyReport - phase 1 #543
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
base: dev
Are you sure you want to change the base?
Conversation
PR Reviewer Guide 🔍Here are some key observations to aid the review process:
|
607506e to
227a1ac
Compare
PR Type
Enhancement
Description
Introduces
localStateConsistencyReportdiagnostic utility.Adds debug endpoint for state consistency reporting.
Optionally prints state consistency report on process exit.
Updates configuration for state consistency reporting.
Changes walkthrough 📝
stateConsistency.ts
Add local state consistency diagnostic utilitysrc/debug/stateConsistency.ts
localStateConsistencyReportfor comparing account stateacross cache, trie, and storage.
debug.ts
Add debug endpoint for state consistency reportsrc/debug/debug.ts
localStateConsistencyReportvia new debugendpoint.
index.ts
Optionally print state consistency report on exitsrc/exit-handler/index.ts
shardus-types.ts
Extend server configuration types for state consistencysrc/shardus/shardus-types.ts
printStateConsistencyOnExitto server configuration interface.server.ts
Update server config for state consistency optionssrc/config/server.ts
recordAccountStatesdefault to true.printStateConsistencyOnExitconfig flag.