Skip to content

Commit

Permalink
remove rlp buf field
Browse files Browse the repository at this point in the history
  • Loading branch information
shekhirin committed Dec 15, 2024
1 parent ca00fc8 commit 75d8c87
Showing 1 changed file with 0 additions and 7 deletions.
7 changes: 0 additions & 7 deletions crates/trie/sparse/src/trie.rs
Original file line number Diff line number Diff line change
Expand Up @@ -165,8 +165,6 @@ pub struct RevealedSparseTrie<P = DefaultBlindedProvider> {
prefix_set: PrefixSetMut,
/// Retained trie updates.
updates: Option<SparseTrieUpdates>,
/// Reusable buffer for RLP encoding of nodes.
rlp_buf: Vec<u8>,
}

impl<P> fmt::Debug for RevealedSparseTrie<P> {
Expand All @@ -177,7 +175,6 @@ impl<P> fmt::Debug for RevealedSparseTrie<P> {
.field("values", &self.values)
.field("prefix_set", &self.prefix_set)
.field("updates", &self.updates)
.field("rlp_buf", &hex::encode(&self.rlp_buf))
.finish_non_exhaustive()
}
}
Expand All @@ -191,7 +188,6 @@ impl Default for RevealedSparseTrie {
values: HashMap::default(),
prefix_set: PrefixSetMut::default(),
updates: None,
rlp_buf: Vec::new(),
}
}
}
Expand All @@ -209,7 +205,6 @@ impl RevealedSparseTrie {
branch_node_hash_masks: HashMap::default(),
values: HashMap::default(),
prefix_set: PrefixSetMut::default(),
rlp_buf: Vec::new(),
updates: None,
}
.with_updates(retain_updates);
Expand All @@ -232,7 +227,6 @@ impl<P> RevealedSparseTrie<P> {
branch_node_hash_masks: HashMap::default(),
values: HashMap::default(),
prefix_set: PrefixSetMut::default(),
rlp_buf: Vec::new(),
updates: None,
}
.with_updates(retain_updates);
Expand All @@ -249,7 +243,6 @@ impl<P> RevealedSparseTrie<P> {
values: self.values,
prefix_set: self.prefix_set,
updates: self.updates,
rlp_buf: self.rlp_buf,
}
}

Expand Down

0 comments on commit 75d8c87

Please sign in to comment.