Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Appearance settings

fix: partial revert of 1be7c1a20; make traverser process identity CIDs#442

Merged
rvagg merged 1 commit intomainipfs/go-graphsync:mainfrom
rvagg/traverser-loads-identityipfs/go-graphsync:rvagg/traverser-loads-identityCopy head branch name to clipboard
Sep 21, 2023
Merged

fix: partial revert of 1be7c1a20; make traverser process identity CIDs#442
rvagg merged 1 commit intomainipfs/go-graphsync:mainfrom
rvagg/traverser-loads-identityipfs/go-graphsync:rvagg/traverser-loads-identityCopy head branch name to clipboard

Conversation

@rvagg
Copy link
Copy Markdown
Member

@rvagg rvagg commented Sep 20, 2023

It turns out that there are obscure cases where this matters, so we can't as easily just ignore identity CIDs. Specifically, classic online Filecoin deals that rely on Graphsync and require identity CIDs be stored in the CARv1 that is used to calculate CommP must see the identity CID pass through the LinkSystem.

Unfortunately, the easiest way to deal with this is to send them over the wire as if they are a normal block; which happens to be the "safe" backward compatible way too. Less easy way would be to simulate it on both ends and not send them, but we'll take the easy path for now.

Extension of tests in here to make sure that the full DAG is transferred even in this case. Blockstore must have identity CIDs in them, or be able to respond properly to them.

It turns out that there are obscure cases where this matters, so we can't
as easily just ignore identity CIDs. Specifically, classic online Filecoin
deals that rely on Graphsync _and_ require identity CIDs be stored in the
CARv1 that is used to calculate CommP must see the identity CID pass through
the LinkSystem.

Unfortunately, the easiest way to deal with this is to send them over the wire
as if they are a normal block; which happens to be the "safe" backward
compatible way too. Less easy way would be to simulate it on both ends and
not send them, but we'll take the easy path for now.

Extension of tests in here to make sure that the full DAG is transferred even
in this case. Blockstore _must_ have identity CIDs in them, or be able to
respond properly to them.
rvagg added a commit to filecoin-project/lassie that referenced this pull request Sep 20, 2023
Ref: ipfs/go-graphsync#442

Instead of relying on the transports to do what we ask wrt identity CIDs;
handle it all locally and gate their handling right up to the output block
stream.
@rvagg rvagg merged commit 200277e into main Sep 21, 2023
@rvagg rvagg deleted the rvagg/traverser-loads-identity branch September 21, 2023 07:35
rvagg added a commit to filecoin-project/lassie that referenced this pull request Sep 21, 2023
Ref: ipfs/go-graphsync#442

Instead of relying on the transports to do what we ask wrt identity CIDs;
handle it all locally and gate their handling right up to the output block
stream.
rvagg added a commit to filecoin-project/lassie that referenced this pull request Sep 21, 2023
Ref: ipfs/go-graphsync#442

Instead of relying on the transports to do what we ask wrt identity CIDs;
handle it all locally and gate their handling right up to the output block
stream.
parkan pushed a commit to parkan/sheltie that referenced this pull request Dec 17, 2025
Ref: ipfs/go-graphsync#442

Instead of relying on the transports to do what we ask wrt identity CIDs;
handle it all locally and gate their handling right up to the output block
stream.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant

Morty Proxy This is a proxified and sanitized view of the page, visit original site.