Skip to content

Commit

Permalink
feat: supply UnsealedCid into SectorPreCommitInfo
Browse files Browse the repository at this point in the history
  • Loading branch information
LinZexiao committed Oct 11, 2023
1 parent b12f3b0 commit 7aa6e0c
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions damocles-manager/modules/impl/commitmgr/params.go
Original file line number Diff line number Diff line change
Expand Up @@ -67,6 +67,10 @@ func (p PreCommitProcessor) preCommitInfo(ctx context.Context, sector core.Secto
DealIDs: sector.DealIDs(),
}

if len(sector.Pieces) > 0 {
params.UnsealedCid = &sector.Pre.CommD
}

// TODO: upgrade sector

deposit, err := stateMgr.StateMinerPreCommitDepositForPower(ctx, maddr, *params, tok)
Expand Down

0 comments on commit 7aa6e0c

Please sign in to comment.