From fd18be4317f05f2fcc38eba7e187b64431bdd611 Mon Sep 17 00:00:00 2001 From: debris Date: Tue, 9 Feb 2016 13:21:32 +0100 Subject: [PATCH] change CLIENT_DB_VER_STR instead of DB_VERSION --- ethcore/src/client.rs | 2 +- util/src/journaldb.rs | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/ethcore/src/client.rs b/ethcore/src/client.rs index b31f98f0b..11671b3f2 100644 --- a/ethcore/src/client.rs +++ b/ethcore/src/client.rs @@ -164,7 +164,7 @@ pub struct Client { } const HISTORY: u64 = 1000; -const CLIENT_DB_VER_STR: &'static str = "1.0"; +const CLIENT_DB_VER_STR: &'static str = "2.0"; impl Client { /// Create a new client with given spec and DB path. diff --git a/util/src/journaldb.rs b/util/src/journaldb.rs index 28dcacbfa..d9d7b29cf 100644 --- a/util/src/journaldb.rs +++ b/util/src/journaldb.rs @@ -50,7 +50,7 @@ impl Clone for JournalDB { const LAST_ERA_KEY : [u8; 4] = [ b'l', b'a', b's', b't' ]; const VERSION_KEY : [u8; 4] = [ b'j', b'v', b'e', b'r' ]; -const DB_VERSION: u32 = 2; +const DB_VERSION: u32 = 1; impl JournalDB { /// Create a new instance given a `backing` database.