This commit is contained in:
Jaremy Creechley 2024-05-02 00:22:36 +03:00
parent 7ed2c0a531
commit 0c00c7c43e
No known key found for this signature in database
GPG Key ID: 4E66FB67B21D3300

View File

@ -88,10 +88,9 @@ proc checkEnv*(env: CircuitEnv) =
echo "Found PTAU file: ", ptauDefPath
proc downloadPtau*(ptauPath, ptauUrl: string) =
## download ptau file using curl if needed
if not ptauPath.fileExists:
echo "Ceremony file not found, downloading..."
echo "PTAU file: ", ptauPath
echo "PTAU url: ", ptauUrl
createDir(ptauPath.parentDir)
withDir(ptauPath.parentDir):
let cmd = fmt"curl --output '{ptauPath}' '{ptauUrl}'"