Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Store final/actual cid for publish message #400

Merged
merged 1 commit into from
Sep 11, 2020

Conversation

ingar
Copy link
Contributor

@ingar ingar commented Sep 10, 2020

Problem

The cid of a message can change when published to the chain because of gas fee changes. Since the Provider passes a cid back to the client when queried for deal status, it could send the incorrect cid back to the client, causing the client to fail to verify the published deal.

Solution

Store the actual/final cid in the MinerDeal

Notes

This is the market-side fix for filecoin-project/lotus#3703

…Cid" parameter

- Update PublishCid with final cid that comes back from WaitForMessage()
Copy link
Collaborator

@hannahhoward hannahhoward left a comment

Choose a reason for hiding this comment

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

We should probably do a seperate follow up PR after we get this code into LOTUS where we save the final cids for other calls to wait for publish, just so we have the right information.

But I'm LGTM'ing an merging this for now.

@hannahhoward hannahhoward merged commit 2959ccc into master Sep 11, 2020
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.

2 participants