Skip to content

Commit

Permalink
Fixed trie diffs using inverted logic (#95)
Browse files Browse the repository at this point in the history
- Snuck in during suggested changes for a PR.
  • Loading branch information
BGluth authored Mar 7, 2024
1 parent 89beb4e commit 78ba5b3
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion mpt_trie/src/debug_tools/diff.rs
Original file line number Diff line number Diff line change
Expand Up @@ -306,7 +306,7 @@ fn find_latest_diff_point_between_tries_rec(

// Note that differences in a node's `value` will be picked up by a hash
// mismatch.
if (a_type, a_key_piece) == (b_type, b_key_piece) {
if (a_type, a_key_piece) != (b_type, b_key_piece) {
depth_state.try_update_longest_divergence_key_node(state);
DiffDetectionState::NodeTypesDiffer
} else {
Expand Down

0 comments on commit 78ba5b3

Please sign in to comment.