feat: Expose the tree reader for `JellyfishMerkleTree`
Closed this issue · 0 comments
eureka-cpu commented
This will allow access to the tree storage without having to keep track of a database variable.
let db = Arc::new(MockTreeStore::default());
let tree = JellyfishMerkleTree::new(db);
// many lines later when needing to access tree storage directly
let len = tree.reader().len();