paramfetch: env var to not check param files each time
This commit is contained in:
parent
1fc0971db0
commit
be58a51f9f
@ -91,6 +91,10 @@ func (ft *fetch) maybeFetchAsync(name string, info paramFile) {
|
||||
}
|
||||
|
||||
func (ft *fetch) checkFile(path string, info paramFile) error {
|
||||
if os.Getenv("TRUST_PARAMS") == "1" {
|
||||
log.Warn("Assuming parameter files are ok. DO NOT USE IN PRODUCTION")
|
||||
}
|
||||
|
||||
f, err := os.Open(path)
|
||||
if err != nil {
|
||||
return err
|
||||
|
Loading…
Reference in New Issue
Block a user