prysm-pulse/fuzz/common.go
Victor Farazdagi 386b69f473
Fix comments (#8802)
* fix incorrect exported name in comments

* add comments to exported methods
2021-04-23 12:06:05 +00:00

21 lines
401 B
Go

package fuzz
import (
"os"
"github.com/prysmaticlabs/prysm/shared/featureconfig"
)
// EnvBls defines an environment variable name to check whether BLS is enabled or not.
const EnvBls = "BLS_ENABLED"
func init() {
var blsEnabled bool
if value, exists := os.LookupEnv(EnvBls); exists {
blsEnabled = value == "1"
}
featureconfig.Init(&featureconfig.Flags{
SkipBLSVerify: !blsEnabled,
})
}