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

Add get-ask, set-ask retrieval commands #3886

Merged
merged 3 commits into from
Sep 17, 2020
Merged

Conversation

ingar
Copy link
Contributor

@ingar ingar commented Sep 16, 2020

Summary

Expose MarketGetRetrievalAsk, MarketSetRetrievalAsk APIs via the CLI.

The set-ask command allows you to modify any or all parameters of the current ask.

Resolves #3843

@hannahhoward
Copy link
Contributor

FYI I don't see this conflicting with actors upgrade so it's probably fine to merge

Copy link
Contributor

@magik6k magik6k left a comment

Choose a reason for hiding this comment

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

Just 2 nits

cmd/lotus-storage-miner/retrieval-deals.go Show resolved Hide resolved
cmd/lotus-storage-miner/retrieval-deals.go Outdated Show resolved Hide resolved
Copy link
Contributor

@magik6k magik6k left a comment

Choose a reason for hiding this comment

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

1 last thing, then LGTM

if err != nil {
return err
}
ask.PricePerByte = abi.TokenAmount(v)
Copy link
Contributor

Choose a reason for hiding this comment

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

That's per byte, but above we the comment says per GiB.

We could change the comment, but i think it's better ux to actually have it be per GiB, so we just need to divide here by 1 << 30

Copy link
Contributor Author

Choose a reason for hiding this comment

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

👍

@magik6k magik6k merged commit 97064f1 into master Sep 17, 2020
@magik6k magik6k deleted the feat/retrieval-set-get-ask branch September 17, 2020 08:32
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.

Expose MarketSetRetrievalAsk on the lotus-miner command line
3 participants