-
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
localStateConsistencyReport
diagnostic 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 utility
src/debug/stateConsistency.ts
localStateConsistencyReport
for comparing account stateacross cache, trie, and storage.
debug.ts
Add debug endpoint for state consistency report
src/debug/debug.ts
localStateConsistencyReport
via new debugendpoint.
index.ts
Optionally print state consistency report on exit
src/exit-handler/index.ts
shardus-types.ts
Extend server configuration types for state consistency
src/shardus/shardus-types.ts
printStateConsistencyOnExit
to server configuration interface.server.ts
Update server config for state consistency options
src/config/server.ts
recordAccountStates
default to true.printStateConsistencyOnExit
config flag.