Nightly - Compare Blocks #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
name: Nightly - Compare Blocks | |
on: | |
schedule: | |
- cron: '0 0 * * *' | |
workflow_dispatch: | |
jobs: | |
compare-blocks: | |
runs-on: ubuntu-latest | |
strategy: | |
matrix: | |
nodes: | |
- name: "Integration 5" | |
erigon: "http://34.175.214.161:8500" | |
zkevm: "http://34.175.214.161:8505" | |
sequencer: "http://34.175.214.161:8005" | |
steps: | |
- name: Checkout code | |
uses: actions/checkout@v2 | |
- name: Set up Go | |
uses: actions/setup-go@v3 | |
with: | |
go-version: '1.22' | |
- name: Install dependencies | |
run: go get github.com/google/go-cmp/cmp | |
- name: Build the compare_blocks binary | |
run: go build -o compare_blocks zk/debug_tools/nightly-block-compare/main.go | |
- name: Run block comparison | |
run: | | |
echo "Comparing blocks for pair: ${{ matrix.nodes.name }}" | |
./compare_blocks -erigon ${{ matrix.nodes.erigon }} -zkevm ${{ matrix.nodes.zkevm }} -sequencer ${{ matrix.nodes.sequencer }} -blocks 1000 -diff 10 |