separated ethcore_migrations from ethcore (#7586)

* separated ethcore_migrations from ethcore

* fixed authorship nitpick

* make ethcore_migrations related exports and imports more consistent
This commit is contained in:
Marek Kotewicz
2018-01-17 22:11:13 +01:00
committed by GitHub
parent d429ce1849
commit 0c01db4a49
16 changed files with 72 additions and 8 deletions

View File

@@ -52,6 +52,7 @@ extern crate ethcore_devtools as devtools;
extern crate ethcore_io as io;
extern crate ethcore_light as light;
extern crate ethcore_logger;
extern crate ethcore_migrations as migrations;
extern crate ethcore_miner as miner;
extern crate ethcore_network as network;
extern crate ethcore_transaction as transaction;

View File

@@ -24,9 +24,8 @@ use journaldb::Algorithm;
use migr::{self, Manager as MigrationManager, Config as MigrationConfig, Migration};
use kvdb;
use kvdb_rocksdb::{CompactionProfile, Database, DatabaseConfig};
use ethcore::migrations;
use migrations::{self, Extract};
use ethcore::db;
use ethcore::migrations::Extract;
/// Database is assumed to be at default version, when no version file is found.
const DEFAULT_VERSION: u32 = 5;
@@ -284,7 +283,7 @@ mod legacy {
use std::path::{Path, PathBuf};
use migr::{Manager as MigrationManager};
use kvdb_rocksdb::CompactionProfile;
use ethcore::migrations;
use migrations;
/// Blocks database path.
pub fn blocks_database_path(path: &Path) -> PathBuf {