-
Notifications
You must be signed in to change notification settings - Fork 9
Open
Labels
team/filecoin-pin"Filecoin Pin" project is a stakeholder for this work."Filecoin Pin" project is a stakeholder for this work.team/fs-wgFOC working group is a stakeholder for this work, and thus wants to track it on their project board.FOC working group is a stakeholder for this work, and thus wants to track it on their project board.
Description
filecoin-pin/src/core/data-set/get-data-set-pieces.ts
Lines 71 to 86 in f4adcec
| const warmStorage = await WarmStorageService.create(synapse.getProvider(), synapse.getWarmStorageAddress()) | |
| const pdpVerifier = new PDPVerifier(synapse.getProvider(), warmStorage.getPDPVerifierAddress()) | |
| scheduledRemovals = await pdpVerifier.getScheduledRemovals(storageContext.dataSetId) | |
| try { | |
| const providerInfo = await synapse.getProviderInfo(storageContext.provider.serviceProvider) | |
| const pdpServer = new PDPServer(null, providerInfo.products?.PDP?.data?.serviceURL ?? '') | |
| const dataSet = await pdpServer.getDataSet(storageContext.dataSetId) | |
| pdpServerPieces = dataSet.pieces | |
| } catch (error) { | |
| logger?.warn({ error }, 'Failed to fetch provider data for scheduled removals and orphan detection') | |
| warnings.push({ | |
| code: 'PROVIDER_DATA_UNAVAILABLE', | |
| message: 'Failed to fetch provider data; orphan detection disabled', | |
| context: { dataSetId: storageContext.dataSetId, error: String(error) }, | |
| }) | |
| } |
replace with storageContext.getScheduledRemovals() when FilOzone/synapse-sdk#490 is released in a new synapse-sdk version
Metadata
Metadata
Assignees
Labels
team/filecoin-pin"Filecoin Pin" project is a stakeholder for this work."Filecoin Pin" project is a stakeholder for this work.team/fs-wgFOC working group is a stakeholder for this work, and thus wants to track it on their project board.FOC working group is a stakeholder for this work, and thus wants to track it on their project board.