cmd, core/state: allow configurable trie cache generations

This commit is contained in:
Péter Szilágyi
2016-10-19 14:55:13 +03:00
parent ca49510e6d
commit 4f46bd19d0
5 changed files with 29 additions and 12 deletions

View File

@ -99,6 +99,7 @@ func importChain(ctx *cli.Context) error {
utils.Fatalf("Failed to read database stats: %v", err)
}
fmt.Println(stats)
fmt.Printf("Trie cache misses: %d\n\n", trie.CacheMisses())
// Compact the entire database to more accurately measure disk io and print the stats
start = time.Now()
@ -113,7 +114,6 @@ func importChain(ctx *cli.Context) error {
utils.Fatalf("Failed to read database stats: %v", err)
}
fmt.Println(stats)
fmt.Println("Trie cache misses:", trie.CacheMisses())
}
return nil
}