paramfetch: env var to not check param files each time

This commit is contained in:
Łukasz Magiera 2019-11-06 13:03:59 +01:00
parent 1fc0971db0
commit be58a51f9f

View File

@ -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