Skip to content

Commit

Permalink
fix(mpt): Remove unnused collapse (#808)
Browse files Browse the repository at this point in the history
  • Loading branch information
hashcashier authored Nov 15, 2024
1 parent 515366c commit 433d4d9
Showing 1 changed file with 3 additions and 4 deletions.
7 changes: 3 additions & 4 deletions crates/mpt/src/node.rs
Original file line number Diff line number Diff line change
Expand Up @@ -432,11 +432,10 @@ impl TrieNode {
// If the child node is empty, convert the extension into an empty node.
*self = Self::Empty;
}
Self::Blinded { .. } => {
node.unblind(fetcher)?;
self.collapse_if_possible(fetcher, hinter)?;
_ => {
// If the child is a (blinded?) branch then no need for collapse
// because deletion did not collapse the (blinded?) branch
}
_ => {}
},
Self::Branch { stack } => {
// Count non-empty children
Expand Down

0 comments on commit 433d4d9

Please sign in to comment.