mirror of
https://gitlab.com/pulsechaincom/erigon-pulse.git
synced 2024-12-25 13:07:17 +00:00
STOP_AFTER_RECONSTITUTE=true
This commit is contained in:
parent
a886ba0192
commit
922b5754da
@ -245,3 +245,19 @@ func StopAfterStage() string {
|
||||
stopAfterStageFlag.Do(f)
|
||||
return stopAfterStage
|
||||
}
|
||||
|
||||
var (
|
||||
stopAfterReconst bool
|
||||
stopAfterReconstOnce sync.Once
|
||||
)
|
||||
|
||||
func StopAfterReconst() bool {
|
||||
stopAfterReconstOnce.Do(func() {
|
||||
v, _ := os.LookupEnv("STOP_AFTER_RECONSTITUTE")
|
||||
if v == "true" {
|
||||
stopAfterReconst = true
|
||||
log.Info("[Experiment]", "STOP_AFTER_RECONSTITUTE", writeMap)
|
||||
}
|
||||
})
|
||||
return stopAfterReconst
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user