-
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
tests:f3: Basic itests coverage for F3 #12204
Conversation
Signed-off-by: Alfonso de la Rocha <adlrocha@tutamail.com>
Signed-off-by: Jakub Sztandera <oss@kubuxu.com>
Signed-off-by: Jakub Sztandera <oss@kubuxu.com>
Signed-off-by: Jakub Sztandera <oss@kubuxu.com>
Signed-off-by: Jakub Sztandera <oss@kubuxu.com>
Signed-off-by: Jakub Sztandera <oss@kubuxu.com>
Signed-off-by: Jakub Sztandera <oss@kubuxu.com>
…to f3-itests Signed-off-by: Alfonso de la Rocha <adlrocha@tutamail.com>
const F3BootstrapEpoch abi.ChainEpoch = -1 | ||
// TODO: We need F3Enabled to be public because without it there is no way to | ||
// allow f3 pubsub topics without a lot of refactoring. | ||
var F3Enabled = false |
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.
Unfortunately, this one needs to be public so it can be enabled at will in itests. Without them, pubsub F3 topics won't be allowed. For the rest we don't need it because we manually build the node F3-enabled through DI.
There may be a better way to do this, suggestions welcome.
var F3Enabled = false | ||
var ManifestServerID = "12D3KooWENMwUF9YxvQxar7uBWJtZkA6amvK4xWmKXfSiHUo2Qq7" | ||
var F3BootstrapEpoch abi.ChainEpoch = -1 | ||
var F3Finality = Finality |
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.
Same here, this is convenient so we can change the finality considered for F3 in itests.
Signed-off-by: Alfonso de la Rocha <adlrocha@tutamail.com>
one, two TestMiner | ||
) | ||
minerOpts := append(nopts, ConstructorOpts( | ||
node.Override(node.F3Participation, modules.F3Participation), |
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.
could you just add a new option to enable f3 participation to the ensemble rather than an entire new constructor just to add this?
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, you have one below, F3Enabled
, so why is this needed?
@@ -215,6 +218,19 @@ func MutateSealingConfig(mut func(sc *config.SealingConfig)) NodeOpt { | |||
}))) | |||
} | |||
|
|||
func F3Enabled(bootstrapEpoch abi.ChainEpoch, blockDelay time.Duration, finality abi.ChainEpoch) NodeOpt { |
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.
func F3Enabled(bootstrapEpoch abi.ChainEpoch, blockDelay time.Duration, finality abi.ChainEpoch) NodeOpt { | |
func WithF3Enabled(bootstrapEpoch abi.ChainEpoch, blockDelay time.Duration, finality abi.ChainEpoch) NodeOpt { |
I know there's a mixed pattern in here but it'd be nice to default to With
options
This way, we don't have to rely on a global variable to determine if F3 is enabled, which will make testing easier. Pre-requisite for #12204
This way, we don't have to rely on a global variable to determine if F3 is enabled, which will make testing easier. Pre-requisite for #12204
This way, we don't have to rely on a global variable to determine if F3 is enabled, which will make testing easier. Pre-requisite for #12204
This way, we don't have to rely on a global variable to determine if F3 is enabled, which will make testing easier. Pre-requisite for #12204
This way, we don't have to rely on a global variable to determine if F3 is enabled, which will make testing easier. Pre-requisite for #12204
This way, we don't have to rely on a global variable to determine if F3 is enabled, which will make testing easier. Pre-requisite for #12204
Replacing with #12486. |
Related Issues
Depends on #12196
Proposed Changes
This PR covers some basic itests for F3, mainly:
Additional Info
Checklist
Before you mark the PR ready for review, please make sure that:
<PR type>: <area>: <change being made>
fix: mempool: Introduce a cache for valid signatures
PR type
: fix, feat, build, chore, ci, docs, perf, refactor, revert, style, testarea
, e.g. api, chain, state, mempool, multisig, networking, paych, proving, sealing, wallet, deps[skip changelog]
to the PR titleskip-changelog
to the PR