Skip to content

core/rawdb: enforce exact key length for num->hash and td in db inspe…#2673

Merged
ucwong merged 1 commit intomasterfrom
dev
Mar 16, 2026
Merged

core/rawdb: enforce exact key length for num->hash and td in db inspe…#2673
ucwong merged 1 commit intomasterfrom
dev

Conversation

@ucwong
Copy link
Member

@ucwong ucwong commented Mar 15, 2026

No description provided.

…ct (#34000)

This PR improves `db inspect` classification accuracy in
`core/rawdb/database.go` by tightening key-shape checks for:

- `Block number->hash`
- `Difficulties (deprecated)`

Previously, both categories used prefix/suffix heuristics and could
mis-bucket unrelated entries.
@ucwong ucwong marked this pull request as ready for review March 16, 2026 17:28
@ucwong ucwong merged commit 15b5f4a into master Mar 16, 2026
1 check passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants