mirror of
https://gitlab.com/pulsechaincom/prysm-pulse.git
synced 2025-01-20 16:41:11 +00:00
31a78ab22a
* add config/features * Gazelle * Gazelle * Fix build * Go mod tidy * active cache Co-authored-by: rauljordan <raul@prysmaticlabs.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,
|
|
})
|
|
}
|