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

Config for deal publishing control addresses #6697

Merged
merged 6 commits into from
Jul 8, 2021

Conversation

magik6k
Copy link
Contributor

@magik6k magik6k commented Jul 7, 2021

This might be useful when running with a separate market miner node - will let miners run a separate lotus daemon without the worker key

Also fixes #6676

@magik6k magik6k requested a review from arajasek July 7, 2021 18:19
itests/kit/funds.go Outdated Show resolved Hide resolved
itests/kit/control.go Outdated Show resolved Hide resolved
@magik6k magik6k force-pushed the feat/dealpublish-ctl-config branch from 3069313 to 9bdea91 Compare July 7, 2021 19:40
@@ -132,6 +132,17 @@ func GetMaxProveCommitDuration(ver actors.Version, t abi.RegisteredSealProof) ab
}
}

func SetProviderCollateralSupplyTarget(num, denom big.Int) {
Copy link
Contributor

@arajasek arajasek Jul 8, 2021

Choose a reason for hiding this comment

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

Can we throw label on here

// SetProviderCollateralSupplyTarget sets the percentage of normalized circulating
// supply that must be covered by provider collateral in a deal. This should
// only be used for testing.

@@ -132,6 +132,17 @@ func GetMaxProveCommitDuration(ver actors.Version, t abi.RegisteredSealProof) ab
}
}

func SetProviderCollateralSupplyTarget(num, denom big.Int) {
{{range .versions}}
{{if (ge . 2)}}
Copy link
Contributor

Choose a reason for hiding this comment

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

Guessing we're not doing this for earlier versions just because it isn't that helpful and the ProvCollateralPercentSupplyNumV0 / ProvCollateralPercentSupplyNumV1 thing is messy?

Copy link
Contributor Author

Choose a reason for hiding this comment

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

We didn't have supply target in v0 actors

Copy link
Contributor Author

Choose a reason for hiding this comment

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

(and v1 actors didn't exist)

Copy link
Contributor

Choose a reason for hiding this comment

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

isn't that what ProvCollateralPercentSupplyNumV0 and ProvCollateralPercentSupplyNumV1 did in v0 actors?

Copy link
Contributor Author

Choose a reason for hiding this comment

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

Oh, maybe, but somehow those don't seem to matter

@magik6k magik6k enabled auto-merge July 8, 2021 16:56
@magik6k magik6k merged commit 8f7bf1d into master Jul 8, 2021
@magik6k magik6k deleted the feat/dealpublish-ctl-config branch July 8, 2021 17:00
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.

[BUG] test-itest-ccupgrade has a >50% spurious falure rate in CI
3 participants