diff --git a/markets/retrievaladapter/provider.go b/markets/retrievaladapter/provider.go index 32621e4a7..a0c73f900 100644 --- a/markets/retrievaladapter/provider.go +++ b/markets/retrievaladapter/provider.go @@ -105,7 +105,6 @@ func (rpn *retrievalProviderNode) GetChainHead(ctx context.Context) (shared.TipS } func (rpn *retrievalProviderNode) IsUnsealed(ctx context.Context, sectorID abi.SectorNumber, offset abi.UnpaddedPieceSize, length abi.UnpaddedPieceSize) (bool, error) { - //TODO(anteva): maybe true? show on chain info?? si, err := rpn.secb.SectorsStatus(ctx, sectorID, false) if err != nil { return false, xerrors.Errorf("failed to get sector info: %w", err) @@ -121,7 +120,7 @@ func (rpn *retrievalProviderNode) IsUnsealed(ctx context.Context, sectorID abi.S Miner: abi.ActorID(mid), Number: sectorID, }, - ProofType: si.SealProof, //TODO: confirm this is correct + ProofType: si.SealProof, } log.Debugf("will call IsUnsealed now sector=%+v, offset=%d, size=%d", sectorID, offset, length) diff --git a/node/modules/storageminer.go b/node/modules/storageminer.go index 0156e81b6..ca60772eb 100644 --- a/node/modules/storageminer.go +++ b/node/modules/storageminer.go @@ -720,7 +720,6 @@ func StorageAuth(ctx helpers.MetricsCtx, ca v0api.Common) (sectorstorage.Storage } func StorageAuthWithURL(url string) func(ctx helpers.MetricsCtx, ca v0api.Common) (sectorstorage.StorageAuth, error) { - log.Infow("Setting auth token based on URL", "url", url) return func(ctx helpers.MetricsCtx, ca v0api.Common) (sectorstorage.StorageAuth, error) { s := strings.Split(url, ":") if len(s) != 2 { diff --git a/node/rpc.go b/node/rpc.go index af0898d67..b283f6ac1 100644 --- a/node/rpc.go +++ b/node/rpc.go @@ -118,7 +118,6 @@ func MinerHandler(a api.StorageMiner, permissioned bool) (http.Handler, error) { mapi = api.PermissionedStorMinerAPI(mapi) } - //_, _ = a.ActorAddress(context.Background()) readerHandler, readerServerOpt := rpcenc.ReaderParamDecoder() rpcServer := jsonrpc.NewServer(readerServerOpt) rpcServer.Register("Filecoin", mapi) diff --git a/storage/sectorblocks/blocks.go b/storage/sectorblocks/blocks.go index ccf2c67d2..ad4ffc0db 100644 --- a/storage/sectorblocks/blocks.go +++ b/storage/sectorblocks/blocks.go @@ -47,7 +47,7 @@ func DsKeyToDealID(key datastore.Key) (uint64, error) { return dealID, nil } -type SectorBuilder interface { // todo: apify, make work remote +type SectorBuilder interface { SectorAddPieceToAny(ctx context.Context, size abi.UnpaddedPieceSize, r storage.Data, d api.PieceDealInfo) (api.SectorOffset, error) SectorsStatus(ctx context.Context, sid abi.SectorNumber, showOnChainInfo bool) (api.SectorInfo, error) }