prysm-pulse/fuzz/common.go
terence tsao 31a78ab22a
Create config package for Shared/featureconfig (#9593)
* add config/features

* Gazelle

* Gazelle

* Fix build

* Go mod tidy

* active cache

Co-authored-by: rauljordan <raul@prysmaticlabs.com>
2021-09-15 01:18:39 +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,
})
}