-
Notifications
You must be signed in to change notification settings - Fork 688
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Prepare docs and action for mainnet release (#1928)
- Loading branch information
1 parent
b4136fa
commit bd4ff0e
Showing
5 changed files
with
135 additions
and
10 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -34,8 +34,9 @@ jobs: | |
uses: olegtarasov/[email protected] | ||
id: tagName | ||
|
||
- name: Put testnet artifacts into a single zip | ||
- name: Put testnet and mainnet artifacts into a single zip | ||
run: | | ||
# TESTNET | ||
mkdir -p testnet/config/environments/public | ||
mkdir -p testnet/db/scripts | ||
cp config/environments/public/* testnet/config/environments/public | ||
|
@@ -44,11 +45,20 @@ jobs: | |
mv testnet/config/environments/public/example.env testnet | ||
sed -i -e "s/image: zkevm-node/image: hermeznetwork\/zkevm-node:$GIT_TAG_NAME/g" testnet/docker-compose.yml | ||
zip -r testnet.zip testnet | ||
# MAINNET | ||
mkdir -p mainnet/config/environments/public | ||
mkdir -p mainnet/db/scripts | ||
cp config/environments/public/* mainnet/config/environments/public | ||
cp docker-compose.yml mainnet | ||
cp db/scripts/init_prover_db.sql mainnet/db/scripts | ||
mv mainnet/config/environments/public/example.env mainnet | ||
sed -i -e "s/image: zkevm-node/image: hermeznetwork\/zkevm-node:$GIT_TAG_NAME/g" mainnet/docker-compose.yml | ||
zip -r mainnet.zip mainnet | ||
- name: Publish testnet zip into release | ||
- name: Publish testnet and mainnet zip into release | ||
uses: AButler/[email protected] | ||
with: | ||
files: 'testnet.zip' | ||
files: 'testnet.zip;mainnet.zip' | ||
repo-token: ${{ secrets.TOKEN_RELEASE }} | ||
release-tag: ${{ steps.tagName.outputs.tag }} | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,8 @@ | ||
# URL of a JSON RPC for Ethereum mainnet | ||
ZKEVM_NODE_ETHERMAN_URL = "http://your.L1node.url" | ||
# PATH WHERE THE STATEDB POSTGRES CONTAINER WILL STORE PERSISTENT DATA | ||
ZKEVM_NODE_STATEDB_DATA_DIR = "/path/to/persistent/data/statedb" | ||
# PATH WHERE THE POOLDB POSTGRES CONTAINER WILL STORE PERSISTENT DATA | ||
ZKEVM_NODE_POOLDB_DATA_DIR = "/path/to/persistent/data/pooldb" | ||
# OPTIONAL, UNCOMENT IF YOU WANT TO DO ADVANCED CONFIG | ||
# ZKEVM_ADVANCED_CONFIG_DIR = "/should/be/same/path/as/ZKEVM_CONFIG_DIR" |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,107 @@ | ||
{ | ||
"runProverServer": false, | ||
"runProverServerMock": false, | ||
"runProverClient": false, | ||
|
||
"runExecutorServer": true, | ||
"runExecutorClient": false, | ||
"runExecutorClientMultithread": false, | ||
|
||
"runStateDBServer": true, | ||
"runStateDBTest": false, | ||
|
||
"runAggregatorServer": false, | ||
"runAggregatorClient": false, | ||
|
||
"runFileGenProof": false, | ||
"runFileGenBatchProof": false, | ||
"runFileGenAggregatedProof": false, | ||
"runFileGenFinalProof": false, | ||
"runFileProcessBatch": false, | ||
"runFileProcessBatchMultithread": false, | ||
|
||
"runKeccakScriptGenerator": false, | ||
"runKeccakTest": false, | ||
"runStorageSMTest": false, | ||
"runBinarySMTest": false, | ||
"runMemAlignSMTest": false, | ||
"runSHA256Test": false, | ||
"runBlakeTest": false, | ||
|
||
"executeInParallel": true, | ||
"useMainExecGenerated": false, | ||
"saveRequestToFile": false, | ||
"saveInputToFile": false, | ||
"saveDbReadsToFile": false, | ||
"saveDbReadsToFileOnChange": false, | ||
"saveOutputToFile": false, | ||
"saveResponseToFile": false, | ||
"loadDBToMemCache": true, | ||
"opcodeTracer": false, | ||
"logRemoteDbReads": false, | ||
"logExecutorServerResponses": false, | ||
|
||
"proverServerPort": 50051, | ||
"proverServerMockPort": 50052, | ||
"proverServerMockTimeout": 10000000, | ||
"proverClientPort": 50051, | ||
"proverClientHost": "127.0.0.1", | ||
|
||
"executorServerPort": 50071, | ||
"executorROMLineTraces": false, | ||
"executorClientPort": 50071, | ||
"executorClientHost": "127.0.0.1", | ||
|
||
"stateDBServerPort": 50061, | ||
"stateDBURL": "local", | ||
|
||
"aggregatorServerPort": 50081, | ||
"aggregatorClientPort": 50081, | ||
"aggregatorClientHost": "127.0.0.1", | ||
|
||
"inputFile": "input_executor.json", | ||
"outputPath": "output", | ||
"cmPolsFile_disabled": "zkevm.commit", | ||
"cmPolsFileC12a_disabled": "zkevm.c12a.commit", | ||
"cmPolsFileRecursive1_disabled": "zkevm.recursive1.commit", | ||
"constPolsFile": "zkevm.const", | ||
"constPolsC12aFile": "zkevm.c12a.const", | ||
"constPolsRecursive1File": "zkevm.recursive1.const", | ||
"mapConstPolsFile": false, | ||
"constantsTreeFile": "zkevm.consttree", | ||
"constantsTreeC12aFile": "zkevm.c12a.consttree", | ||
"constantsTreeRecursive1File": "zkevm.recursive1.consttree", | ||
"mapConstantsTreeFile": false, | ||
"starkFile": "zkevm.prove.json", | ||
"starkZkIn": "zkevm.proof.zkin.json", | ||
"starkZkInC12a":"zkevm.c12a.zkin.proof.json", | ||
"starkFileRecursive1": "zkevm.recursive1.proof.json", | ||
"verifierFile": "zkevm.verifier.dat", | ||
"verifierFileRecursive1": "zkevm.recursive1.verifier.dat", | ||
"witnessFile_disabled": "zkevm.witness.wtns", | ||
"witnessFileRecursive1": "zkevm.recursive1.witness.wtns", | ||
"execC12aFile": "zkevm.c12a.exec", | ||
"execRecursive1File": "zkevm.recursive1.exec", | ||
"starkVerifierFile": "zkevm.g16.0001.zkey", | ||
"publicStarkFile": "zkevm.public.json", | ||
"publicFile": "public.json", | ||
"proofFile": "proof.json", | ||
"keccakScriptFile": "keccak_script.json", | ||
"keccakPolsFile_DISABLED": "keccak_pols.json", | ||
"keccakConnectionsFile": "keccak_connections.json", | ||
"starkInfoFile": "zkevm.starkinfo.json", | ||
"starkInfoC12aFile": "zkevm.c12a.starkinfo.json", | ||
"starkInfoRecursive1File": "zkevm.recursive1.starkinfo.json", | ||
"databaseURL": "postgresql://prover_user:prover_pass@zkevm-state-db:5432/prover_db", | ||
"dbNodesTableName": "state.nodes", | ||
"dbProgramTableName": "state.program", | ||
"dbAsyncWrite": false, | ||
"dbMultiWrite": true, | ||
"dbMTCacheSize": 8192, | ||
"dbProgramCacheSize": 1024, | ||
"cleanerPollingPeriod": 600, | ||
"requestsPersistence": 3600, | ||
"maxExecutorThreads": 20, | ||
"maxProverThreads": 8, | ||
"maxStateDBThreads": 8 | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters