chore: add debug code
This commit is contained in:
parent
3a34c737dc
commit
6b7c807e86
@ -139,7 +139,8 @@ func New(diskdb ethdb.Database, config *Config, resolver ChildResolver) *Databas
|
|||||||
if config.CleanCacheSize > 0 {
|
if config.CleanCacheSize > 0 {
|
||||||
cleans = fastcache.New(config.CleanCacheSize)
|
cleans = fastcache.New(config.CleanCacheSize)
|
||||||
}
|
}
|
||||||
log.Info("success to init hash mode triedb")
|
// TODO:: debug code
|
||||||
|
panic("success to init hash mode triedb")
|
||||||
return &Database{
|
return &Database{
|
||||||
diskdb: diskdb,
|
diskdb: diskdb,
|
||||||
resolver: resolver,
|
resolver: resolver,
|
||||||
|
@ -226,7 +226,8 @@ func New(diskdb ethdb.Database, config *Config) *Database {
|
|||||||
log.Crit("Failed to disable database", "err", err) // impossible to happen
|
log.Crit("Failed to disable database", "err", err) // impossible to happen
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
log.Info("success to init path mode triedb")
|
// TODO:: debug code
|
||||||
|
panic("success to init path mode triedb")
|
||||||
return db
|
return db
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user