exists -> contains

This commit is contained in:
Robert Habermeier
2016-06-02 21:01:47 +02:00
parent 6c6229c963
commit 1e10445f82
2 changed files with 10 additions and 6 deletions

View File

@@ -59,7 +59,7 @@ impl<'db> TrieDB<'db> {
/// Create a new trie with the backing database `db` and `root`
/// Panics, if `root` does not exist
pub fn new(db: &'db HashDB, root: &'db H256) -> Self {
if !db.exists(root) {
if !db.contains(root) {
flushln!("TrieDB::new({}): Trie root not found!", root);
panic!("Trie root not found!");
}