chainstore: new ForceHeadSilent to support benchmarks.

This commit is contained in:
Raúl Kripalani
2020-11-04 14:39:01 +00:00
parent fd1439f284
commit 370ef93db6
2 changed files with 24 additions and 3 deletions
+2 -1
View File
@@ -424,7 +424,8 @@ var importBenchCmd = &cli.Command{
if start != nil {
startEpoch = start.Height()
if err := cs.SetHead(start); err != nil {
if err := cs.ForceHeadSilent(context.Background(), start); err != nil {
// if err := cs.SetHead(start); err != nil {
return err
}
}