Skip to content

Commit

Permalink
Downgrade post
Browse files Browse the repository at this point in the history
  • Loading branch information
fasmat committed Mar 1, 2024
1 parent e395c8f commit 72a985c
Show file tree
Hide file tree
Showing 3 changed files with 8 additions and 10 deletions.
12 changes: 5 additions & 7 deletions activation/e2e/activation_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -150,6 +150,10 @@ func Test_BuilderWithMultipleClients(t *testing.T) {
},
).Times(numSigners)

verifier, err := activation.NewPostVerifier(cfg, logger.Named("verifier"))
require.NoError(t, err)
t.Cleanup(func() { assert.NoError(t, verifier.Close()) })
v := activation.NewValidator(nil, poetDb, cfg, opts.Scrypt, verifier)
tab := activation.NewBuilder(
conf,
cdb,
Expand All @@ -160,22 +164,16 @@ func Test_BuilderWithMultipleClients(t *testing.T) {
syncer,
logger,
activation.WithPoetConfig(poetCfg),
activation.WithValidator(v),
)
for _, sig := range signers {
tab.Register(sig)
}

require.NoError(t, tab.StartSmeshing(types.Address{}))

<-endChan

require.NoError(t, tab.StopSmeshing(false))

verifier, err := activation.NewPostVerifier(cfg, logger.Named("verifier"))
require.NoError(t, err)
t.Cleanup(func() { assert.NoError(t, verifier.Close()) })

v := activation.NewValidator(nil, poetDb, cfg, opts.Scrypt, verifier)
for _, sig := range signers {
atx := atxs[sig.NodeID()]

Expand Down
2 changes: 1 addition & 1 deletion go.mod
Original file line number Diff line number Diff line change
Expand Up @@ -42,7 +42,7 @@ require (
github.com/spacemeshos/go-scale v1.1.12
github.com/spacemeshos/merkle-tree v0.2.3
github.com/spacemeshos/poet v0.10.2
github.com/spacemeshos/post v0.12.1
github.com/spacemeshos/post v0.12.0
github.com/spf13/afero v1.11.0
github.com/spf13/cobra v1.8.0
github.com/spf13/pflag v1.0.5
Expand Down
4 changes: 2 additions & 2 deletions go.sum
Original file line number Diff line number Diff line change
Expand Up @@ -634,8 +634,8 @@ github.com/spacemeshos/merkle-tree v0.2.3 h1:zGEgOR9nxAzJr0EWjD39QFngwFEOxfxMloE
github.com/spacemeshos/merkle-tree v0.2.3/go.mod h1:VomOcQ5pCBXz7goiWMP5hReyqOfDXGSKbrH2GB9Htww=
github.com/spacemeshos/poet v0.10.2 h1:FVb0xgCFcjZyIGBQ92SlOZVx4KCmlCRRL4JSHL6LMGU=
github.com/spacemeshos/poet v0.10.2/go.mod h1:73ROEXGladw3RbvhAk0sIGi/ttfpo+ASUBRvnBK55N8=
github.com/spacemeshos/post v0.12.1 h1:VJG+sY+1SMDocNnWzqd97iVyfBGX67b63jM9E18m5uY=
github.com/spacemeshos/post v0.12.1/go.mod h1:lIysveR414fNMmbHyFQWY8GAW9JQN3otFjihP9MumDI=
github.com/spacemeshos/post v0.12.0 h1:1MmsR8EENLf17RCFebwwIU4jq0ukHMkQcUcgaGad3bQ=
github.com/spacemeshos/post v0.12.0/go.mod h1:lIysveR414fNMmbHyFQWY8GAW9JQN3otFjihP9MumDI=
github.com/spacemeshos/sha256-simd v0.1.0 h1:G7Mfu5RYdQiuE+wu4ZyJ7I0TI74uqLhFnKblEnSpjYI=
github.com/spacemeshos/sha256-simd v0.1.0/go.mod h1:O8CClVIilId7RtuCMV2+YzMj6qjVn75JsxOxaE8vcfM=
github.com/spaolacci/murmur3 v1.1.0 h1:7c1g84S4BPRrfL5Xrdp6fOJ206sU9y293DDHaoy0bLI=
Expand Down

0 comments on commit 72a985c

Please sign in to comment.