sealing pipeline: Only set pc commd when deals are present
This commit is contained in:
parent
556815f844
commit
3887bf97a4
@ -4,7 +4,6 @@ package sealing_test
|
|||||||
import (
|
import (
|
||||||
"bytes"
|
"bytes"
|
||||||
"context"
|
"context"
|
||||||
"github.com/filecoin-project/go-state-types/network"
|
|
||||||
"sort"
|
"sort"
|
||||||
"sync"
|
"sync"
|
||||||
"testing"
|
"testing"
|
||||||
@ -17,6 +16,7 @@ import (
|
|||||||
"github.com/filecoin-project/go-state-types/abi"
|
"github.com/filecoin-project/go-state-types/abi"
|
||||||
"github.com/filecoin-project/go-state-types/big"
|
"github.com/filecoin-project/go-state-types/big"
|
||||||
minertypes "github.com/filecoin-project/go-state-types/builtin/v9/miner"
|
minertypes "github.com/filecoin-project/go-state-types/builtin/v9/miner"
|
||||||
|
"github.com/filecoin-project/go-state-types/network"
|
||||||
miner6 "github.com/filecoin-project/specs-actors/v6/actors/builtin/miner"
|
miner6 "github.com/filecoin-project/specs-actors/v6/actors/builtin/miner"
|
||||||
|
|
||||||
"github.com/filecoin-project/lotus/api"
|
"github.com/filecoin-project/lotus/api"
|
||||||
|
@ -366,8 +366,10 @@ func (m *Sealing) preCommitInfo(ctx statemachine.Context, sector SectorInfo) (*m
|
|||||||
SealedCID: *sector.CommR,
|
SealedCID: *sector.CommR,
|
||||||
SealRandEpoch: sector.TicketEpoch,
|
SealRandEpoch: sector.TicketEpoch,
|
||||||
DealIDs: sector.dealIDs(),
|
DealIDs: sector.dealIDs(),
|
||||||
|
}
|
||||||
|
|
||||||
UnsealedCid: sector.CommD,
|
if sector.hasDeals() {
|
||||||
|
params.UnsealedCid = sector.CommD
|
||||||
}
|
}
|
||||||
|
|
||||||
collateral, err := m.Api.StateMinerPreCommitDepositForPower(ctx.Context(), m.maddr, *params, ts.Key())
|
collateral, err := m.Api.StateMinerPreCommitDepositForPower(ctx.Context(), m.maddr, *params, ts.Key())
|
||||||
|
Loading…
Reference in New Issue
Block a user