Struct ethcore::migrations::extras::ToV6
[−]
[src]
pub struct ToV6;
This migration reduces the sizes of keys and moves ExtrasIndex
byte from back to the front.
Trait Implementations
impl SimpleMigration for ToV6
[src]
fn columns(&self) -> Option<u32>
Number of columns in database after the migration.
fn version(&self) -> u32
Version of database after the migration.
fn simple_migrate(&mut self,
key: Vec<u8>,
value: Vec<u8>)
-> Option<(Vec<u8>, Vec<u8>)>
key: Vec<u8>,
value: Vec<u8>)
-> Option<(Vec<u8>, Vec<u8>)>
Should migrate existing object to new database. Returns None
if the object does not exist in new version of database. Read more