fix(lotus-sim): load prove-commits

(regression from refactor)
This commit is contained in:
Steven Allen 2021-06-15 23:54:01 -07:00
parent af33d69357
commit e41f0842b0

View File

@ -57,6 +57,9 @@ func (stage *ProveCommitStage) EnqueueProveCommit(
// block or runs out.
func (stage *ProveCommitStage) PackMessages(ctx context.Context, bb *blockbuilder.BlockBuilder) (_err error) {
if !stage.initialized {
if err := stage.load(ctx, bb); err != nil {
return err
}
}
// Roll the commitQueue forward.
stage.commitQueue.advanceEpoch(bb.Height())