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 {
|
||||
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{
|
||||
diskdb: diskdb,
|
||||
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.Info("success to init path mode triedb")
|
||||
// TODO:: debug code
|
||||
panic("success to init path mode triedb")
|
||||
return db
|
||||
}
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user