change CLIENT_DB_VER_STR instead of DB_VERSION
This commit is contained in:
parent
40068c1938
commit
fd18be4317
@ -164,7 +164,7 @@ pub struct Client {
|
|||||||
}
|
}
|
||||||
|
|
||||||
const HISTORY: u64 = 1000;
|
const HISTORY: u64 = 1000;
|
||||||
const CLIENT_DB_VER_STR: &'static str = "1.0";
|
const CLIENT_DB_VER_STR: &'static str = "2.0";
|
||||||
|
|
||||||
impl Client {
|
impl Client {
|
||||||
/// Create a new client with given spec and DB path.
|
/// Create a new client with given spec and DB path.
|
||||||
|
@ -50,7 +50,7 @@ impl Clone for JournalDB {
|
|||||||
const LAST_ERA_KEY : [u8; 4] = [ b'l', b'a', b's', b't' ];
|
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 VERSION_KEY : [u8; 4] = [ b'j', b'v', b'e', b'r' ];
|
||||||
|
|
||||||
const DB_VERSION: u32 = 2;
|
const DB_VERSION: u32 = 1;
|
||||||
|
|
||||||
impl JournalDB {
|
impl JournalDB {
|
||||||
/// Create a new instance given a `backing` database.
|
/// Create a new instance given a `backing` database.
|
||||||
|
Loading…
Reference in New Issue
Block a user