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

Cancel transfer should cause Storage deal to fail #457

Merged
merged 3 commits into from
Dec 1, 2020

Conversation

dirkmc
Copy link
Contributor

@dirkmc dirkmc commented Nov 27, 2020

Depends on filecoin-project/go-data-transfer#119 filecoin-project/go-data-transfer#120
Addresses filecoin-project/lotus#4997

This PR modifies the client and provider FSMs to transition to "deal failing" when the data transfer for the deal is cancelled.

If there is no network connectivity, the other party in the data transfer will not detect the deal cancellation (because it's not possible for the party that cancels the transfer to send a "cancel" message across the wire).

We should fix this in a follow-up PR.

Additionally we should ensure cancel transfer causes retrieval deals to fail in a follow-up PR. Issue: filecoin-project/lotus#5034

@dirkmc dirkmc force-pushed the feat/cancel-transfer-fails-deal branch from 9523133 to 94cae7b Compare November 27, 2020 14:24
@dirkmc dirkmc force-pushed the feat/cancel-transfer-fails-deal branch from 94cae7b to 25afe9e Compare November 27, 2020 14:28
@dirkmc dirkmc changed the title Cancel transfer should cause deal to fail Cancel transfer should cause Storage deal to fail Nov 27, 2020
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.

LGTM

@dirkmc dirkmc merged commit 69f7f6b into master Dec 1, 2020
@dirkmc dirkmc deleted the feat/cancel-transfer-fails-deal branch December 1, 2020 09:35
@dirkmc dirkmc mentioned this pull request Dec 1, 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