-
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
Configurable CC Sector Expiration #6803
Conversation
e7d9b33
to
a647722
Compare
f47bdb2
to
0085fc0
Compare
Rebased onto latest |
0085fc0
to
973653f
Compare
5e617c5
to
9e08b46
Compare
9e08b46
to
3829d6b
Compare
// as set just before returning within Expiration() | ||
expected += miner.WPoStProvingPeriod - (expected % miner.WPoStProvingPeriod) + pBoundary - 1 | ||
assert.Equal(t, int(expected), int(exp)) | ||
} |
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.
The math is a little obtuse here so I put literal expected
s for both paths (zero config for CC and non-CC sectors) as well as show how the custom value is applied. I kept the later units with literals in the assert and simply updated the values.
expected := h + customLifetimeEpochs - (pBuffer * 2) | ||
// as set just before returning within Expiration() | ||
expected += miner.WPoStProvingPeriod - (expected % miner.WPoStProvingPeriod) + pBoundary - 1 | ||
assert.Equal(t, int(expected), int(exp)) |
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.
I'm pretty sure this math is unchanged, but please double-check this against the impl. 🙇
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.
Looks good, just one tiny issue
…ions * origin/master: (47 commits) Fix links in issue templates Update issue templates and add templates for M1 config: Add newlines consistently config: Add note on codegen to types.go fix lint cli docsgen config: Bring some docs from filecoin-docs add comment about the necessity of FileIO improve README config doc gen: generate formatted code config: Fix doc finding logic Nicer lotus-miner config commands Move doc-comment logic to the config pkg config: doc struct codegen lotus daemon config utils adjust compaction test with badger to hit the db add splitstore compaction test with badger markset update README with configuration options tweak badger options some tweaks in badger markset ... Conflicts: node/config/def.go
@magik6k This should be ready to merge, despite some testground PRs which are hanging. I've kicked them off again to see if they'll resolve. |
(fixes #6836)
Adds config:
Related #4760