From 977fefeb1bd78b45967c323700f119f242de07ff Mon Sep 17 00:00:00 2001 From: yaohcn Date: Thu, 23 Jul 2020 19:55:06 +0800 Subject: [PATCH] add sealing context --- states_sealing.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/states_sealing.go b/states_sealing.go index 9b1c04291..bca692db4 100644 --- a/states_sealing.go +++ b/states_sealing.go @@ -40,7 +40,7 @@ func (m *Sealing) handlePacking(ctx statemachine.Context, sector SectorInfo) err log.Warnf("Creating %d filler pieces for sector %d", len(fillerSizes), sector.SectorNumber) } - fillerPieces, err := m.pledgeSector(ctx.Context(), m.minerSector(sector.SectorNumber), sector.existingPieceSizes(), fillerSizes...) + fillerPieces, err := m.pledgeSector(sector.sealingCtx(ctx.Context()), m.minerSector(sector.SectorNumber), sector.existingPieceSizes(), fillerSizes...) if err != nil { return xerrors.Errorf("filling up the sector (%v): %w", fillerSizes, err) }