Skip to content

Commit

Permalink
Merge pull request #2851 from CounterpartyXCP/fixes
Browse files Browse the repository at this point in the history
fix testnet test book
  • Loading branch information
ouziel-slama authored Dec 15, 2024
2 parents c1a6033 + 6d115cb commit ff01575
Showing 1 changed file with 5 additions and 2 deletions.
7 changes: 5 additions & 2 deletions counterparty-core/counterpartycore/server.py
Original file line number Diff line number Diff line change
Expand Up @@ -1042,10 +1042,13 @@ def bootstrap_progress(blocknum, blocksize, totalsize):
tar_file.extractall(path=config.DATA_DIR) # nosec B202 # noqa: S202

assert os.path.exists(ledger_database_path)
assert os.path.exists(api_database_path)
assert os.path.exists(api_database_path) or os.path.exists(old_api_database_path)
# user and group have "rw" access
os.chmod(ledger_database_path, 0o660) # nosec B103
os.chmod(api_database_path, 0o660) # nosec B103
if os.path.exists(api_database_path):
os.chmod(api_database_path, 0o660) # nosec B103
if os.path.exists(old_api_database_path):
os.chmod(old_api_database_path, 0o660) # nosec B103

with log.Spinner("Cleaning up..."):
os.remove(tarball_path)
Expand Down

0 comments on commit ff01575

Please sign in to comment.