Skip to content

Commit

Permalink
Merge pull request #136 from spacemeshos/remove-threads-from-ffi
Browse files Browse the repository at this point in the history
verification on the same thread
  • Loading branch information
fasmat authored May 8, 2023
2 parents df4d1a5 + 012210c commit d801f75
Show file tree
Hide file tree
Showing 3 changed files with 3 additions and 4 deletions.
2 changes: 1 addition & 1 deletion Makefile.Inc
Original file line number Diff line number Diff line change
Expand Up @@ -93,7 +93,7 @@ else
endif
endif

POSTRS_SETUP_REV = 0.1.6
POSTRS_SETUP_REV = 0.1.7
POSTRS_SETUP_ZIP = libpost-$(platform)-v$(POSTRS_SETUP_REV).zip
POSTRS_SETUP_URL_ZIP ?= https://github.com/spacemeshos/post-rs/releases/download/v$(POSTRS_SETUP_REV)/$(POSTRS_SETUP_ZIP)

Expand Down
3 changes: 1 addition & 2 deletions postrs/bridge.go
Original file line number Diff line number Diff line change
Expand Up @@ -69,7 +69,7 @@ func GenerateProof(datadir string, challenge []byte, cfg config.Config, nonces u
}, nil
}

func VerifyProof(proof *shared.Proof, metadata *shared.ProofMetadata, cfg config.Config, theads uint, powScrypt, labelScrypt config.ScryptParams) error {
func VerifyProof(proof *shared.Proof, metadata *shared.ProofMetadata, cfg config.Config, powScrypt, labelScrypt config.ScryptParams) error {
if proof == nil {
return errors.New("proof cannot be nil")
}
Expand Down Expand Up @@ -122,7 +122,6 @@ func VerifyProof(proof *shared.Proof, metadata *shared.ProofMetadata, cfg config
cProof,
&cMetadata,
config,
1,
)

switch result {
Expand Down
2 changes: 1 addition & 1 deletion verifying/verifying.go
Original file line number Diff line number Diff line change
Expand Up @@ -71,5 +71,5 @@ func Verify(p *shared.Proof, m *shared.ProofMetadata, cfg config.Config, opts ..
return fmt.Errorf("invalid `commitmentAtxId` length; expected: 32, given: %v", len(m.CommitmentAtxId))
}

return postrs.VerifyProof(p, m, cfg, 1, options.powScrypt, options.labelScrypt)
return postrs.VerifyProof(p, m, cfg, options.powScrypt, options.labelScrypt)
}

0 comments on commit d801f75

Please sign in to comment.