prysm-pulse/testing/fuzz/common.go
Raul Jordan 61c24c3870
Move Fuzz/ Into Testing/ (#9617)
Co-authored-by: prylabs-bulldozer[bot] <58059840+prylabs-bulldozer[bot]@users.noreply.github.com>
2021-09-16 17:32:51 +00:00

21 lines
386 B
Go

package fuzz
import (
"os"
"github.com/prysmaticlabs/prysm/config/features"
)
// 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"
}
features.Init(&features.Flags{
SkipBLSVerify: !blsEnabled,
})
}