Always use `~/.chia/test-plots` as test-plotting directory.
This commit is contained in:
parent
bd8d20aeb3
commit
14792e840e
|
@ -7,6 +7,8 @@ and this project does not yet adhere to [Semantic Versioning](https://semver.org
|
|||
|
||||
## [Unreleased]
|
||||
|
||||
- test plots now go into `~/.chia/test-plots/`
|
||||
|
||||
## [1.0beta6] aka Beta 1.6 - 2020-06-01
|
||||
|
||||
### Added
|
||||
|
|
|
@ -4,7 +4,7 @@ We are happy that you are taking a look at the code for Chia, a proof of space a
|
|||
|
||||
A lot of fascinating new cryptography and blockchain concepts are used and implemented here.
|
||||
This repo includes the code for the Chia full node, farmer, and timelord (in src), which are all written in python.
|
||||
It also includes a verifiable delay function implementation that it imports from the [chiavdf repo](https://github.com/Chia-Network/chiavdf) (in c/c++), and a proof of space implementation that it imports from the [chiapos repo](https://github.com/Chia-Network/chiapos). BLS signatures are imported from the [bls-signatures repo](https://github.com/Chia-Network/bls-signatures) as blspy. There is an additional dependency on the [chiabip158 repo](https://github.com/Chia-Network/chiabip158). For major platforms, binary and source wheels are shipped to PyPI from each dependent repo and then chia-blockchain can pip install those from PyPI or they can be prepackaged as is done for the Windows installer. On unsupported ploatforms, pip will fall back to the source distributions to be compiled locally.
|
||||
It also includes a verifiable delay function implementation that it imports from the [chiavdf repo](https://github.com/Chia-Network/chiavdf) (in c/c++), and a proof of space implementation that it imports from the [chiapos repo](https://github.com/Chia-Network/chiapos). BLS signatures are imported from the [bls-signatures repo](https://github.com/Chia-Network/bls-signatures) as blspy. There is an additional dependency on the [chiabip158 repo](https://github.com/Chia-Network/chiabip158). For major platforms, binary and source wheels are shipped to PyPI from each dependent repo and then chia-blockchain can pip install those from PyPI or they can be prepackaged as is done for the Windows installer. On unsupported platforms, pip will fall back to the source distributions to be compiled locally.
|
||||
|
||||
If you want to learn more about this project, read the [wiki](https://github.com/Chia-Network/chia-blockchain/wiki), or check out the [green paper](https://www.chia.net/assets/ChiaGreenPaper.pdf).
|
||||
|
||||
|
|
|
@ -41,14 +41,12 @@ from src.util.config import load_config, load_config_cli, save_config
|
|||
from src.harvester import load_plots
|
||||
|
||||
|
||||
TEMP_PLOT_DIR = tempfile.TemporaryDirectory()
|
||||
|
||||
|
||||
def get_plot_dir():
|
||||
cache_path = Path(os.path.expanduser(os.getenv("CHIA_ROOT", "~/.chia/"))) / "test-plots"
|
||||
if cache_path.exists():
|
||||
return cache_path
|
||||
return Path(TEMP_PLOT_DIR.name)
|
||||
cache_path = (
|
||||
Path(os.path.expanduser(os.getenv("CHIA_ROOT", "~/.chia/"))) / "test-plots"
|
||||
)
|
||||
mkdir(cache_path)
|
||||
return cache_path
|
||||
|
||||
|
||||
class BlockTools:
|
||||
|
@ -57,9 +55,7 @@ class BlockTools:
|
|||
"""
|
||||
|
||||
def __init__(
|
||||
self,
|
||||
root_path: Optional[Path] = None,
|
||||
real_plots: bool = False,
|
||||
self, root_path: Optional[Path] = None, real_plots: bool = False,
|
||||
):
|
||||
self._tempdir = None
|
||||
if root_path is None:
|
||||
|
|
Loading…
Reference in New Issue