add SealProof in sector builder
This commit is contained in:
parent
9741867426
commit
1af89236da
@ -54,7 +54,7 @@ func (rpn *retrievalProviderNode) GetMinerWorkerAddress(ctx context.Context, min
|
|||||||
|
|
||||||
func (rpn *retrievalProviderNode) UnsealSector(ctx context.Context, sectorID abi.SectorNumber, offset abi.UnpaddedPieceSize, length abi.UnpaddedPieceSize) (io.ReadCloser, error) {
|
func (rpn *retrievalProviderNode) UnsealSector(ctx context.Context, sectorID abi.SectorNumber, offset abi.UnpaddedPieceSize, length abi.UnpaddedPieceSize) (io.ReadCloser, error) {
|
||||||
log.Debugf("get sector %d, offset %d, length %d", sectorID, offset, length)
|
log.Debugf("get sector %d, offset %d, length %d", sectorID, offset, length)
|
||||||
si, err := rpn.sectorsStatus(ctx, sectorID, true)
|
si, err := rpn.sectorsStatus(ctx, sectorID, false)
|
||||||
if err != nil {
|
if err != nil {
|
||||||
return nil, err
|
return nil, err
|
||||||
}
|
}
|
||||||
|
@ -134,7 +134,7 @@ func (m *Miner) SectorsStatus(ctx context.Context, sid abi.SectorNumber, showOnC
|
|||||||
LastErr: info.LastErr,
|
LastErr: info.LastErr,
|
||||||
Log: log,
|
Log: log,
|
||||||
// on chain info
|
// on chain info
|
||||||
SealProof: 0,
|
SealProof: info.SectorType,
|
||||||
Activation: 0,
|
Activation: 0,
|
||||||
Expiration: 0,
|
Expiration: 0,
|
||||||
DealWeight: big.Zero(),
|
DealWeight: big.Zero(),
|
||||||
|
Loading…
Reference in New Issue
Block a user