diff --git a/.github/workflows/block_replay.yml b/.github/workflows/block_replay.yml deleted file mode 100644 index e364055..0000000 --- a/.github/workflows/block_replay.yml +++ /dev/null @@ -1,61 +0,0 @@ -name: Block replay test - -on: - push: - branches: [ master ] - -jobs: - replay: - runs-on: self-hosted - steps: - - uses: actions/checkout@v3 - - name: Set up Go - uses: actions/setup-go@v4 - with: - go-version: 1.19 - - - name: Extract converted db - run: | - mkdir .ethereum - tar xf /home/devops/verkle-test-dependencies/replay_converted.tgz --strip-components=1 -C .ethereum - - - name: Download geth from the proper repo - run: git clone https://github.com/gballet/go-ethereum -b overlay/changes-for-replay geth - # run: git clone https://github.com/gballet/go-ethereum -b beverly-hills+sepolia-replay geth - - - name: Edit geth to use this repo and build it - run: | - cd geth - cp /home/devops/verkle-test-dependencies/fork.txt . - go mod edit -replace=github.com/ethereum/go-verkle=$PWD/.. - go mod edit -replace=github.com/crate-crypto/go-ipa=github.com/crate-crypto/go-ipa@`grep go-ipa ../go.mod | cut -d'-' -f 5` - go mod download github.com/crate-crypto/go-ipa - go mod tidy - go build ./cmd/geth/... - - - name: Run replay - run: | - cd geth - echo 230080 > conversion.txt - ./geth import --datadir=../.ethereum /home/devops/verkle-test-dependencies/next_blocks4 - - # - name: Upload profiler file - # uses: actions/upload-artifact@v3 - # with: - # name: cpu.out - # path: ./geth/cpu.out - - # - name: Generate profile diagram - # run: | - # cd geth - # go tool pprof -png cpu.out > profile001.png - - # - name: Upload profiler picture - # uses: actions/upload-artifact@v3 - # with: - # name: profile.png - # path: ./geth/profile001.png - - - name: Cleanup - if: always() - run: rm -rf geth .ethereum \ No newline at end of file diff --git a/README.md b/README.md index 2a1e7ce..1946b93 100644 --- a/README.md +++ b/README.md @@ -1,10 +1,7 @@ [![Go Version](https://img.shields.io/badge/go-v1.19-green.svg)](https://golang.org/dl/) [![Lint and Test](https://github.com/ethereum/go-verkle/actions/workflows/go.yml/badge.svg)](https://github.com/ethereum/go-verkle/actions/workflows/go.yml) -[![DeepSource](https://deepsource.io/gh/ethereum/go-verkle.svg/?label=active+issues&show_trend=true&token=OjuF5Q2HbKzpWY8LgWuffNZp)](https://deepsource.io/gh/ethereum/go-verkle/?ref=repository-badge) [![goreports](https://goreportcard.com/badge/github.com/ethereum/go-verkle)](https://goreportcard.com/report/github.com/ethereum/go-verkle) [![API Reference](https://camo.githubusercontent.com/915b7be44ada53c290eb157634330494ebe3e30a/68747470733a2f2f676f646f632e6f72672f6769746875622e636f6d2f676f6c616e672f6764646f3f7374617475732e737667)](https://pkg.go.dev/github.com/ethereum/go-verkle) -[![Block replay](https://github.com/ethereum/go-verkle/actions/workflows/block_replay.yml/badge.svg)](https://github.com/ethereum/go-verkle/actions/workflows/block_replay.yml) - # go-verkle diff --git a/proof_ipa.go b/proof_ipa.go index e540163..c1f2081 100644 --- a/proof_ipa.go +++ b/proof_ipa.go @@ -565,7 +565,9 @@ func Verify(vp *VerkleProof, preStateRoot []byte, postStateRoot []byte, statedif } rootC := new(Point) - rootC.SetBytes(preStateRoot) + if err := rootC.SetBytes(preStateRoot); err != nil { + return fmt.Errorf("error setting prestate root: %w", err) + } pretree, err := PreStateTreeFromProof(proof, rootC) if err != nil { return fmt.Errorf("error rebuilding the pre-tree from proof: %w", err)