From 22a19819c671fe9b2f7d15cdf5c9b67dbac44e03 Mon Sep 17 00:00:00 2001 From: Robert Habermeier Date: Mon, 13 Jun 2016 20:00:00 +0200 Subject: [PATCH] rename pv64 module to snapshot --- ethcore/src/client/client.rs | 4 ++-- ethcore/src/lib.rs | 2 +- ethcore/src/{pv64 => snapshot}/mod.rs | 2 +- 3 files changed, 4 insertions(+), 4 deletions(-) rename ethcore/src/{pv64 => snapshot}/mod.rs (99%) diff --git a/ethcore/src/client/client.rs b/ethcore/src/client/client.rs index 419e3df26..9c9a24d24 100644 --- a/ethcore/src/client/client.rs +++ b/ethcore/src/client/client.rs @@ -756,13 +756,13 @@ impl BlockChainClient for Client where V: Verifier { } fn take_snapshot(&self, root_dir: &Path) { - use pv64::{ManifestData, chunk_blocks, chunk_state}; + use snapshot::{ManifestData, chunk_blocks, chunk_state}; let best_header_bytes = self.best_block_header(); let best_header = HeaderView::new(&best_header_bytes); let state_root = best_header.state_root(); - trace!(target: "pv64_snapshot", "Taking snapshot starting at block {}", best_header.number()); + trace!(target: "snapshot", "Taking snapshot starting at block {}", best_header.number()); let mut path = root_dir.to_owned(); path.push("snapshot/"); diff --git a/ethcore/src/lib.rs b/ethcore/src/lib.rs index 21b96a5e6..d34e3a512 100644 --- a/ethcore/src/lib.rs +++ b/ethcore/src/lib.rs @@ -111,7 +111,7 @@ pub mod pod_state; pub mod engine; pub mod migrations; pub mod miner; -pub mod pv64; +pub mod snapshot; mod blooms; mod db; diff --git a/ethcore/src/pv64/mod.rs b/ethcore/src/snapshot/mod.rs similarity index 99% rename from ethcore/src/pv64/mod.rs rename to ethcore/src/snapshot/mod.rs index 375a36def..9d0074d76 100644 --- a/ethcore/src/pv64/mod.rs +++ b/ethcore/src/snapshot/mod.rs @@ -14,7 +14,7 @@ // You should have received a copy of the GNU General Public License // along with Parity. If not, see . -//! Pv64 snapshot creation helpers. +//! Snapshot creation helpers. // Try to have chunks be around 16MB (before compression) const PREFERRED_CHUNK_SIZE: usize = 16 * 1024 * 1024;