mirror of
https://github.com/mimblewimble/grin.git
synced 2025-01-21 03:21:08 +03:00
remove duplicate dir creation code (#1603)
This commit is contained in:
parent
fd8c03679a
commit
985bced99d
1 changed files with 0 additions and 15 deletions
|
@ -103,21 +103,6 @@ impl TxHashSet {
|
||||||
commit_index: Arc<ChainStore>,
|
commit_index: Arc<ChainStore>,
|
||||||
header: Option<&BlockHeader>,
|
header: Option<&BlockHeader>,
|
||||||
) -> Result<TxHashSet, Error> {
|
) -> Result<TxHashSet, Error> {
|
||||||
let output_file_path: PathBuf = [&root_dir, TXHASHSET_SUBDIR, OUTPUT_SUBDIR]
|
|
||||||
.iter()
|
|
||||||
.collect();
|
|
||||||
fs::create_dir_all(output_file_path.clone())?;
|
|
||||||
|
|
||||||
let rproof_file_path: PathBuf = [&root_dir, TXHASHSET_SUBDIR, RANGE_PROOF_SUBDIR]
|
|
||||||
.iter()
|
|
||||||
.collect();
|
|
||||||
fs::create_dir_all(rproof_file_path.clone())?;
|
|
||||||
|
|
||||||
let kernel_file_path: PathBuf = [&root_dir, TXHASHSET_SUBDIR, KERNEL_SUBDIR]
|
|
||||||
.iter()
|
|
||||||
.collect();
|
|
||||||
fs::create_dir_all(kernel_file_path.clone())?;
|
|
||||||
|
|
||||||
Ok(TxHashSet {
|
Ok(TxHashSet {
|
||||||
output_pmmr_h: PMMRHandle::new(root_dir.clone(), OUTPUT_SUBDIR, true, header)?,
|
output_pmmr_h: PMMRHandle::new(root_dir.clone(), OUTPUT_SUBDIR, true, header)?,
|
||||||
rproof_pmmr_h: PMMRHandle::new(root_dir.clone(), RANGE_PROOF_SUBDIR, true, header)?,
|
rproof_pmmr_h: PMMRHandle::new(root_dir.clone(), RANGE_PROOF_SUBDIR, true, header)?,
|
||||||
|
|
Loading…
Reference in a new issue