Skip to content

feat: add devnet network support and --skip-ipni flag#354

Open
rvagg wants to merge 3 commits intomasterfrom
rvagg/devnet
Open

feat: add devnet network support and --skip-ipni flag#354
rvagg wants to merge 3 commits intomasterfrom
rvagg/devnet

Conversation

@rvagg
Copy link
Member

@rvagg rvagg commented Mar 9, 2026

  • Support --network devnet using foc-devnet's devnet-info.json via synapse-core's toChain(). Private key auto-resolves from devnet user.
  • Add --skip-ipni flag for add/import commands, auto-enabled on devnet.

Closes: #348

image

^ URLs aren't going to work there obviously .. but I'm not sure it's worth chasing those down and turning them off, hopefully any devnet user will know that they are meaningless.

Support --network devnet using foc-devnet's devnet-info.json via
synapse-core's toChain(). Private key auto-resolves from devnet user.
Add --skip-ipni flag for add/import commands, auto-enabled on devnet.

Closes: #348
@FilOzzy FilOzzy added team/filecoin-pin "Filecoin Pin" project is a stakeholder for this work. team/fs-wg FOC working group is a stakeholder for this work, and thus wants to track it on their project board. labels Mar 9, 2026
@FilOzzy FilOzzy added this to FOC Mar 9, 2026
@github-project-automation github-project-automation bot moved this to 📌 Triage in FOC Mar 9, 2026
@rvagg
Copy link
Member Author

rvagg commented Mar 9, 2026

Actually it ended up bothering me and it wasn't hard to deal with; URLs adjusted for devnet as a special case

image

@rjan90 rjan90 added this to the M4.1: mainnet ready milestone Mar 9, 2026
/** Data set metadata applied when creating or updating the storage context */
dataSetMetadata?: Record<string, string>
/** Skip IPNI advertisement verification after upload */
skipIpni?: boolean
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

This option reads like it would skip announcement, not verification: "should I skip IPNI during add?"

Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

skipVerifyIpni?

Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

we should also change the CLI after this rename (if we agree)

Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

maybe skipIpniVerification

Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I had similar thought when I saw the flag. Basicly want to make clear that we're still asking SP to announce the advertisment, but we're not going to confirm that IPNI has the advertisement. So yeah, either of the proposals seem good to me.

@github-project-automation github-project-automation bot moved this from 📌 Triage to ⌨️ In Progress in FOC Mar 9, 2026
Copy link
Collaborator

@SgtPooki SgtPooki left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

could be useful to add some notes to DEVELOPMENT.md on how to set this up for future users, linking to foc-devnet repo setup instructions

/** Data set metadata applied when creating or updating the storage context */
dataSetMetadata?: Record<string, string>
/** Skip IPNI advertisement verification after upload */
skipIpni?: boolean
Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

maybe skipIpniVerification

metadata?: Record<string, string>

/** Skip IPNI advertisement verification after upload */
skipIpni?: boolean
Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

ditto to Julian's other comment

/** Data set metadata applied when creating or updating the storage context */
dataSetMetadata?: Record<string, string>
/** Skip IPNI advertisement verification after upload */
skipIpni?: boolean
Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

ditto to Julian's other comment

.choices(['mainnet', 'calibration'])
new Option(
'--network <network>',
'Filecoin network to use. "devnet" reads config from foc-devnet ' +
Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Suggested change
'Filecoin network to use. "devnet" reads config from foc-devnet ' +
'Filecoin network to use. "devnet" reads config from foc-devnet.json ' +

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

team/filecoin-pin "Filecoin Pin" project is a stakeholder for this work. team/fs-wg FOC working group is a stakeholder for this work, and thus wants to track it on their project board.

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Give option to skip content routing checks

6 participants