Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
6 changes: 5 additions & 1 deletion src/core/synapse/index.ts
Original file line number Diff line number Diff line change
Expand Up @@ -29,6 +29,7 @@ const DEFAULT_DATA_SET_METADATA = {
*/
const DEFAULT_STORAGE_CONTEXT_CONFIG = {
withCDN: false, // CDN not needed for Filecoin Pin currently
withIpni: true, // Always filter for IPNI-enabled providers for IPFS indexing
metadata: DEFAULT_DATA_SET_METADATA,
} as const

Expand Down Expand Up @@ -221,7 +222,10 @@ export async function initializeSynapse(config: SynapseSetupConfig, logger: Logg

logger.info({ event: 'synapse.init', authMode, rpcUrl: rpcURL }, 'Initializing Synapse SDK')

const synapseOptions: SynapseOptions = { rpcURL }
const synapseOptions: SynapseOptions = {
rpcURL,
withIpni: true, // Always filter for IPNI-enabled providers
}
if (config.warmStorageAddress) {
synapseOptions.warmStorageAddress = config.warmStorageAddress
}
Expand Down
1 change: 1 addition & 0 deletions src/payments/interactive.ts
Original file line number Diff line number Diff line change
Expand Up @@ -92,6 +92,7 @@ export async function runInteractiveSetup(options: PaymentSetupOptions): Promise
const synapse = await Synapse.create({
privateKey,
rpcURL: rpcUrl,
withIpni: true, // Always filter for IPNI-enabled providers
})
const network = synapse.getNetwork()
const client = synapse.getClient()
Expand Down