Skip to content

Commit

Permalink
feat(statedb/genesis-verify): enhance mismatch detetion(fields level …
Browse files Browse the repository at this point in the history
…output) (#2497)

* feat(rooch-da): enhance mismatch detection in genesis verify

1. Improved mismatch detection by categorizing mismatches into field, metadata, value, and object level. Added comparison and detailed output formatting for better debugging.
2. Enhanced the inscription state comparison by adding InscriptionForComparison struct and its related methods. Also optimized file I/O operations with buffered reads and writes for performance gains.
3. Enhanced genesis verification to support rune comparison and properly format differences. Added helper functions to convert and compare rune values. (rune is u128, lack of supports in json)

we could search certain mismatched type by: grep diff_*
  • Loading branch information
popcnt1 authored Aug 23, 2024
1 parent 782cabe commit 48195ad
Show file tree
Hide file tree
Showing 2 changed files with 302 additions and 52 deletions.
Loading

0 comments on commit 48195ad

Please sign in to comment.