chore: add debug code

This commit is contained in:
joeycli 2024-08-12 18:15:32 +08:00
parent 3a34c737dc
commit 6b7c807e86
2 changed files with 4 additions and 2 deletions

@ -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
} }