Skip to content

Commit

Permalink
Bump poet to v0.9.5 (#5043)
Browse files Browse the repository at this point in the history
## Changes
Bumped poet to the latest available version

## Test Plan
Existing tests should pass
  • Loading branch information
poszu committed Sep 21, 2023
1 parent 8454236 commit c7d42cf
Show file tree
Hide file tree
Showing 36 changed files with 418 additions and 307 deletions.
2 changes: 1 addition & 1 deletion Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -47,7 +47,7 @@ install:
go mod download
curl -sSfL https://raw.githubusercontent.com/golangci/golangci-lint/master/install.sh | sh -s v1.54.2
go install github.com/spacemeshos/go-scale/scalegen@v1.1.12
go install go.uber.org/mock/mockgen@v0.2.0
go install go.uber.org/mock/mockgen@v0.3.0
go install gotest.tools/gotestsum@v1.10.1
go install honnef.co/go/tools/cmd/staticcheck@v0.4.5
.PHONY: install
Expand Down
64 changes: 34 additions & 30 deletions activation/mocks.go

Large diffs are not rendered by default.

18 changes: 11 additions & 7 deletions activation/nipost_mocks.go

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

5 changes: 1 addition & 4 deletions activation/poet_test_harness.go
Original file line number Diff line number Diff line change
Expand Up @@ -58,10 +58,7 @@ func NewHTTPPoetTestHarness(ctx context.Context, poetdir string, opts ...HTTPPoe
opt(cfg)
}

cfg, err := server.SetupConfig(cfg)
if err != nil {
return nil, err
}
server.SetupConfig(cfg)

poet, err := server.New(ctx, *cfg)
if err != nil {
Expand Down
4 changes: 1 addition & 3 deletions activation/poetdb_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -28,9 +28,7 @@ var (

func getPoetProof(t *testing.T) types.PoetProofMessage {
createProofOnce.Do(func() {
members := [][]byte{memberHash[:]}
challenge, err := prover.CalcTreeRoot(members)
require.NoError(t, err)
challenge := memberHash[:]

leaves, merkleProof, err := prover.GenerateProofWithoutPersistency(
context.Background(),
Expand Down
44 changes: 24 additions & 20 deletions api/grpcserver/mocks.go

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

Loading

0 comments on commit c7d42cf

Please sign in to comment.