different migrations based on pruning

This commit is contained in:
Robert Habermeier
2016-07-05 19:21:18 +02:00
parent e151fbb071
commit a7103e2870
7 changed files with 27 additions and 20 deletions

View File

@@ -2,4 +2,4 @@
mod v7;
pub use self::v7::ToV7;
pub use self::v7::ArchiveV7;

View File

@@ -3,10 +3,10 @@ use util::migration::SimpleMigration;
use util::sha3::Hashable;
/// This migration migrates the state db to use an accountdb which ensures uniqueness
/// using an address' hash as opposed to the address itself.
pub struct ToV7;
/// using an address' hash as opposed to the address itself. Works only for ArchiveDB.
pub struct ArchiveV7;
impl SimpleMigration for ToV7 {
impl SimpleMigration for ArchiveV7 {
fn version(&self) -> u32 {
7
}