renamed new_pre_existing to new_existing

This commit is contained in:
debris 2015-12-11 03:49:15 +01:00
parent b487f8f20e
commit f19d044e7c
1 changed files with 2 additions and 2 deletions

View File

@ -329,7 +329,7 @@ impl<'db, T> TrieDB<'db, T> where T: 'db + HashDB {
/// Create a new trie with the backing database `db` and `root`
/// Panics, if `root` does not exist
pub fn new_pre_existing(db: &'db mut T, root: &'db mut H256) -> Self {
pub fn new_existing(db: &'db mut T, root: &'db mut H256) -> Self {
assert!(db.exists(root));
TrieDB {
db: db,
@ -1361,7 +1361,7 @@ mod tests {
}
{
let _ = TrieDB::new_pre_existing(&mut db, &mut root);
let _ = TrieDB::new_existing(&mut db, &mut root);
}
}
}