mirror of
https://gitlab.com/pulsechaincom/erigon-pulse.git
synced 2025-01-10 04:51:20 +00:00
bcee4845dc
* save state * remove repair * save state * remove emptydb check * save state * add walkAsOf test * add WalkAsOf and MultiWalkAsOf tests * deployed contracts counter * reference counter for contract code * drop storage root&contract hash for changesets * start incarnation is 1(save state) * fix ReorgOverSelfDestruct test * hack fix TestReorgOverSelfDestruct * test benchmark * cleanup * remove useless debug * remove print trie * return remove subtrie call to updateTrieRoot * save state * add mutation test * remove useless test * fix * added mutation commit test * rename experiment to thin history * thin history mutation commit test * fix ethdb tests * getAsOf test * add test&fix history index * fix test * make test for index search * compute trie root incarnation fix * tests fixes * done job in case of panic * fix lint * fix&test for bad incarnation * fix initial incarnation for genesis * fix lint * fix changeset test * fix storage ranges test * fix lint * move set incarnation to create contract * add comment Co-authored-by: ledgerwatch <akhounov@gmail.com> Co-authored-by: Evgeny Danilenko <6655321@bk.ru>
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
|
|
}
|