rename pv64 module to snapshot
This commit is contained in:
parent
6ec282fe98
commit
22a19819c6
@ -756,13 +756,13 @@ impl<V> BlockChainClient for Client<V> where V: Verifier {
|
|||||||
}
|
}
|
||||||
|
|
||||||
fn take_snapshot(&self, root_dir: &Path) {
|
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_bytes = self.best_block_header();
|
||||||
let best_header = HeaderView::new(&best_header_bytes);
|
let best_header = HeaderView::new(&best_header_bytes);
|
||||||
let state_root = best_header.state_root();
|
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();
|
let mut path = root_dir.to_owned();
|
||||||
path.push("snapshot/");
|
path.push("snapshot/");
|
||||||
|
@ -111,7 +111,7 @@ pub mod pod_state;
|
|||||||
pub mod engine;
|
pub mod engine;
|
||||||
pub mod migrations;
|
pub mod migrations;
|
||||||
pub mod miner;
|
pub mod miner;
|
||||||
pub mod pv64;
|
pub mod snapshot;
|
||||||
|
|
||||||
mod blooms;
|
mod blooms;
|
||||||
mod db;
|
mod db;
|
||||||
|
@ -14,7 +14,7 @@
|
|||||||
// You should have received a copy of the GNU General Public License
|
// You should have received a copy of the GNU General Public License
|
||||||
// along with Parity. If not, see <http://www.gnu.org/licenses/>.
|
// along with Parity. If not, see <http://www.gnu.org/licenses/>.
|
||||||
|
|
||||||
//! Pv64 snapshot creation helpers.
|
//! Snapshot creation helpers.
|
||||||
|
|
||||||
// Try to have chunks be around 16MB (before compression)
|
// Try to have chunks be around 16MB (before compression)
|
||||||
const PREFERRED_CHUNK_SIZE: usize = 16 * 1024 * 1024;
|
const PREFERRED_CHUNK_SIZE: usize = 16 * 1024 * 1024;
|
Loading…
Reference in New Issue
Block a user