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 cancels storage deal #5032

Merged
merged 4 commits into from
Dec 1, 2020
Merged

Cancel transfer cancels storage deal #5032

merged 4 commits into from
Dec 1, 2020

Conversation

dirkmc
Copy link
Contributor

@dirkmc dirkmc commented Nov 27, 2020

Imports filecoin-project/go-fil-markets#457

When the user cancels a data transfer using the CLI, the local node

  1. sends a "cancel" message to the remote node
  2. cancels the transfer locally

Before, if sending a "cancel" message to the remote node failed, the transfer wouldn't be cancelled locally.
Now it will be, and the deal will be failed.

This PR also adds a cancel-timeout parameter to both lotus client cancel-transfer and lotus-miner data-transfers cancel (by default 5s)

Copy link
Contributor

@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 by me

@dirkmc
Copy link
Contributor Author

dirkmc commented Dec 1, 2020

Fixes #5062 (the fix is included in the go-fil-markets release included in this PR)

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.

3 participants