mirror of
https://gitlab.com/pulsechaincom/prysm-pulse.git
synced 2024-12-24 20:37:17 +00:00
61c24c3870
Co-authored-by: prylabs-bulldozer[bot] <58059840+prylabs-bulldozer[bot]@users.noreply.github.com>
21 lines
386 B
Go
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,
|
|
})
|
|
}
|