Skip to content

Commit

Permalink
add batch size option to fetch log
Browse files Browse the repository at this point in the history
  • Loading branch information
yuetloo committed Feb 22, 2024
1 parent 70ce3e4 commit a47aaa6
Showing 1 changed file with 6 additions and 0 deletions.
6 changes: 6 additions & 0 deletions .github/workflows/finalize-round.yml
Original file line number Diff line number Diff line change
Expand Up @@ -11,6 +11,10 @@ on:
description: 'MACI creation transaction hash'
required: true
default: '0x1280527bdb23cbd4906c94e152722792fc59400bfccfc89709beb2531fc55365'
blocks_per_batch:
description: 'Blocks of logs to fetch per batch'
required: true
default: '9000'
network:
description: 'Network'
required: true
Expand Down Expand Up @@ -69,6 +73,7 @@ jobs:
export CLRFUND_ADDRESS=${{ github.event.inputs.clrfund_address }}
export MACI_TX_HASH=${{ github.event.inputs.maci_tx_hash }}
export NETWORK=${{ github.event.inputs.network }}
export BLOCKS_PER_BATCH=${{ github.event.inputs.blocks_per_batch }}
export RAPID_SNARK="$GITHUB_WORKSPACE/rapidsnark/package/bin/prover"
export CIRCUIT_DIRECTORY=$GITHUB_WORKSPACE/params
# tally and finalize
Expand All @@ -77,6 +82,7 @@ jobs:
yarn hardhat clr-tally --clrfund "${CLRFUND_ADDRESS}" --network "${NETWORK}" \
--rapidsnark ${RAPID_SNARK} \
--circuit-directory ${CIRCUIT_DIRECTORY} \
--blocks-per-batch ${BLOCKS_PER_BATCH} \
--maci-tx-hash "${MACI_TX_HASH}" --output-dir "./proof_output"
curl --location --request POST 'https://api.pinata.cloud/pinning/pinFileToIPFS' \
--header "Authorization: Bearer ${{ secrets.PINATA_JWT }}" \
Expand Down

0 comments on commit a47aaa6

Please sign in to comment.