mirror of
https://gitlab.com/pulsechaincom/prysm-pulse.git
synced 2024-12-26 05:17:22 +00:00
386b69f473
* fix incorrect exported name in comments * add comments to exported methods
21 lines
401 B
Go
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,
|
|
})
|
|
}
|