-
Notifications
You must be signed in to change notification settings - Fork 1.3k
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
Conversation
3069313
to
9bdea91
Compare
@@ -132,6 +132,17 @@ func GetMaxProveCommitDuration(ver actors.Version, t abi.RegisteredSealProof) ab | |||
} | |||
} | |||
|
|||
func SetProviderCollateralSupplyTarget(num, denom big.Int) { |
There was a problem hiding this comment.
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)}} |
There was a problem hiding this comment.
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?
There was a problem hiding this comment.
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
There was a problem hiding this comment.
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)
There was a problem hiding this comment.
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?
There was a problem hiding this comment.
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
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