Skip to content

Commit

Permalink
Merge pull request #290 from spacemeshos/update-libpostrs
Browse files Browse the repository at this point in the history
Update libpost to 0.7.8
  • Loading branch information
fasmat authored May 21, 2024
2 parents 409f540 + 2cf49a0 commit fbe4ae6
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
2 changes: 1 addition & 1 deletion Makefile.Inc
Original file line number Diff line number Diff line change
Expand Up @@ -51,7 +51,7 @@ else
endif

# Also update 'SUPPORTED_VERSION' in internal/postrs/version_check.go
POSTRS_SETUP_REV = 0.7.5
POSTRS_SETUP_REV = 0.7.8
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
4 changes: 2 additions & 2 deletions internal/postrs/version_check.go
Original file line number Diff line number Diff line change
Expand Up @@ -15,11 +15,11 @@ const (
// regexp matching supported versions of post-rs library
SUPPORTED_VERSION = `0\.7\.(\d+)` // 0.7.*
// Set this env variable to "true" or "1" to disable version check.
DISABLE_CKECK_ENV = "LIBPOST_DISABLE_VERSION_CHECK"
DISABLE_CHECK_ENV = "LIBPOST_DISABLE_VERSION_CHECK"
)

func init() {
checkDisabledEnv := strings.ToLower(os.Getenv(DISABLE_CKECK_ENV))
checkDisabledEnv := strings.ToLower(os.Getenv(DISABLE_CHECK_ENV))
if checkDisabledEnv == "true" || checkDisabledEnv == "1" {
return
}
Expand Down

0 comments on commit fbe4ae6

Please sign in to comment.