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

allow miner to disable/enable consideration of received storage deal proposals #1994

Merged

Conversation

laser
Copy link
Contributor

@laser laser commented Jun 11, 2020

Why does this PR exist?

This changeset makes incremental progress towards #1920.

What's in this PR?

This PR adds a Config get/set pair to the DI graph for the new AcceptingStorageDealProposal bool. The getter always loads config TOML from disk, and is called by the storage deal provider when it receives a storage deal proposal. The setter is called through two new CLI commands: lotus-storage-miner deals disable and lotus-storage-miner deals enable.

By default, a storage miner is configured to accept storage deals.

@laser laser requested a review from magik6k June 11, 2020 20:25
Copy link
Member

@whyrusleeping whyrusleeping left a comment

Choose a reason for hiding this comment

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

Seems like a good pattern, will wait for @magik6k to also give a thumbs up as 'the DI guy'

Copy link
Contributor

@arajasek arajasek left a comment

Choose a reason for hiding this comment

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

LGTM, I think, everything seems to follow existing patterns

@magik6k magik6k merged commit 01f0bb3 into filecoin-project:next Jun 15, 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.

None yet

4 participants