mirror of
https://gitlab.com/pulsechaincom/erigon-pulse.git
synced 2025-01-10 04:51:20 +00:00
17 lines
206 B
Go
17 lines
206 B
Go
|
package debug
|
||
|
|
||
|
import (
|
||
|
"os"
|
||
|
"sync"
|
||
|
)
|
||
|
|
||
|
var gerEnv sync.Once
|
||
|
var ThinHistory bool
|
||
|
|
||
|
func IsThinHistory() bool {
|
||
|
gerEnv.Do(func() {
|
||
|
_, ThinHistory = os.LookupEnv("THIN_HISTORY")
|
||
|
})
|
||
|
return ThinHistory
|
||
|
}
|