Add faster and slimmer option to chain export via lotus-shed

This commit is contained in:
whyrusleeping
2020-09-10 17:28:25 -07:00
parent 232cc320bd
commit 0e3dd3cb3b
5 changed files with 134 additions and 6 deletions
+1 -1
View File
@@ -508,7 +508,7 @@ func (a *ChainAPI) ChainExport(ctx context.Context, nroots abi.ChainEpoch, tsk t
bw := bufio.NewWriterSize(w, 1<<20)
defer bw.Flush() //nolint:errcheck // it is a write to a pipe
if err := a.Chain.Export(ctx, ts, nroots, bw); err != nil {
if err := a.Chain.Export(ctx, ts, nroots, false, bw); err != nil {
log.Errorf("chain export call failed: %s", err)
return
}