mirror of
https://github.com/vacp2p/pmtree.git
synced 2026-01-09 15:28:02 -05:00
fix: add hardcoded path to default method
This commit is contained in:
@@ -42,11 +42,9 @@ where
|
||||
D: Database,
|
||||
H: Hasher,
|
||||
{
|
||||
/// Creates tree with specified depth and default dbpath.
|
||||
///
|
||||
/// USE FOR IN-MEMORY DATABASE ONLY!
|
||||
/// Creates tree with specified depth and default "pmtree_db" dbpath.
|
||||
pub fn default(depth: usize) -> Result<Self> {
|
||||
Self::new(depth, "")
|
||||
Self::new(depth, "pmtree_db")
|
||||
}
|
||||
|
||||
/// Creates new `MerkleTree` and store it to the specified path/db
|
||||
|
||||
Reference in New Issue
Block a user