Tracking: Improve reth-trie-db
state traits
#12216
Labels
A-db
Related to the database
A-sdk
Related to reth's use as a library
A-trie
Related to Merkle Patricia Trie implementation
C-enhancement
New feature or request
C-tracking-issue
An issue that collects information about a broad development initiative
M-prevent-stale
Prevents old inactive issues/PRs from being closed due to inactivity
Currently we have the following for the
DatabaseProof
,DatabaseStateRoot
, etc. traits:reth/crates/trie/db/src/proof.rs
Lines 17 to 36 in fe53ec5
This can likely be rewritten as:
Where the caller can have a
from_tx
method on the struct itself, instead of having one on the trait. The trait implementer is responsible for owning or managing a tx / tx ref.Tasks
The text was updated successfully, but these errors were encountered: