-
Notifications
You must be signed in to change notification settings - Fork 8
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
[Session] add num_blocks_per_session
param
#530
[Session] add num_blocks_per_session
param
#530
Conversation
️✅ There are no secrets present in this pull request anymore.If these secrets were true positive and are still valid, we highly recommend you to revoke them. 🦉 GitGuardian detects secrets in your source code to help developers and security teams secure the modern development process. You are seeing this because you or someone else with access to this repository has authorized GitGuardian to scan your pull request. |
179ad01
to
8c0604e
Compare
The image is going to be pushed after the next commit. You can use |
The CI will now also run the e2e tests on devnet, which increases the time it takes to complete all CI checks. If you just created a pull request, you might need to push another commit to produce a container image DevNet can utilize to spin up infrastructure. You can use |
707e002
to
5846990
Compare
f81089a
to
05e631a
Compare
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.
This is setting some really great standards that others will just copy-pasta to add more params. Love it!
@@ -9,7 +9,10 @@ import ( | |||
// DefaultAddServiceFee is the default value for the add service fee | |||
// parameter in the genesis state of the service module. | |||
// TODO_BLOCKER: Revisit default param values for service fee | |||
const DefaultAddServiceFee = 1000000000 // 1000 POKT | |||
const ( | |||
ParamAddServiceFee = "add_service_fee" |
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.
Excited to add the champion business logic here soon!
cc @moatus
@bryanchriswhite I saw this is blocked due to e2e test failing on CI. Looking at the output of the test, it seems like the reason is the accounts were not fully initialized due to send transactions not working correctly. It appears we've recently introduced some fees. Here's the error:
I'll see how to address that, and I'll probably end up pushing a fix in your PR. |
We started having this issue because the On LocalNet, we have this set to E2E tests mostly pass. There's this e2e test error though, which seems to be related to that PR: @bryanchriswhite is this error expected? |
Thanks for investigating and for the context @okdas!
This is not expected; however, it makes sense if the DevNet state is not reset between E2E test runs and a previous run failed after altering DevNet state. The test attempts to reset all module params to their default values after each scenario but depending on how the test fails, it seems, this may not happen as expected. 🤔 It might be better to add the "unauthorized" key to the config.yaml instead of adding it to the keyring during the test. I've noticed this also seems to cause errors locally when running After re-building and -running CI, it's passing. 👍 Thanks! |
Done in 6c6ec62. |
🚨 DO NOT delete this branch until #538 has changed its base branch off of this branch! 🚨 |
Summary
This is the first step towards the objective outlined in #517: introduce the
NumBlocksPerSession
parameter to thesession
module.(This PR is dependent on the param related E2E tests added in #486)
Next steps:
SessionQueryClient
&SupplierClient
.RelayMiner
to query dependent params on demand (naive implementation).sessionkeeper.NumBlocksPerSession
placeholder constant (depends on 1 & 2).session
module (scaffoldMsgUpdateParam
).RelayMiner
&SessionQueryClient
to react to param updates.Issue
NumBlocksPerSession
governance parameter #517Type of change
Select one or more:
Testing
Documentation changes (only if making doc changes)
make docusaurus_start
; only needed if you make doc changesLocal Testing (only if making code changes)
make go_develop_and_test
make test_e2e
PR Testing (only if making code changes)
devnet-test-e2e
label to the PR.make trigger_ci
if you want to re-trigger tests without any code changesSanity Checklist