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

[On-Chain] Refactor grace_period_end_offset_blocks as a shared module param #628

Merged
merged 108 commits into from
Jun 28, 2024

Conversation

bryanchriswhite
Copy link
Contributor

@bryanchriswhite bryanchriswhite commented Jun 20, 2024

Summary

Refactor grace_period_end_offset_blocks as a shared module param

Issue

Type of change

Select one or more:

  • New feature, functionality or library
  • Bug fix
  • Code health or cleanup
  • Documentation
  • Other (specify)

Testing

Documentation changes (only if making doc changes)

  • make docusaurus_start; only needed if you make doc changes

Local Testing (only if making code changes)

  • Unit Tests: make go_develop_and_test
  • LocalNet E2E Tests: make test_e2e
  • See quickstart guide for instructions

PR Testing (only if making code changes)

  • DevNet E2E Tests: Add the devnet-test-e2e label to the PR.
    • THIS IS VERY EXPENSIVE, so only do it after all the reviews are complete.
    • Optionally run make trigger_ci if you want to re-trigger tests without any code changes
    • If tests fail, try re-running failed tests only using the GitHub UI as shown here

Sanity Checklist

  • I have tested my changes using the available tooling
  • I have commented my code
  • I have performed a self-review of my own code; both comments & source code
  • I create and reference any new tickets, if applicable
  • I have left TODOs throughout the codebase, if applicable

bryanchriswhite and others added 30 commits June 6, 2024 12:25
Co-authored-by: Daniel Olshansky <[email protected]>
Co-authored-by: Daniel Olshansky <[email protected]>
…request_probability

* pokt/main:
  [Proof Module] feat: on-chain proof window validation (#588)
…requirement_threshold

* pokt/main:
  [Proof Module] Add `proof_request_probability` param (#593)
Co-authored-by: Daniel Olshansky <[email protected]>
pkg/client/interface.go Show resolved Hide resolved
x/shared/keeper/msg_server_update_param_test.go Outdated Show resolved Hide resolved
proto/poktroll/shared/params.proto Show resolved Hide resolved
config.yml Outdated Show resolved Hide resolved
Base automatically changed from issues/586/todos/done to main June 24, 2024 08:25
bryanchriswhite and others added 5 commits June 24, 2024 10:49
…period

* pokt/main:
  [Code Health] refactor: random number generation (#618)
  [Code Health] refactor: tx hash encoding (#617)
  [Docs] Relay session & claim/proof diagrams (#478)
  [Code Health] refactor: block query client interface (#616)
Copy link
Contributor

@red-0ne red-0ne left a comment

Choose a reason for hiding this comment

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

Added a few comments but the changes look good.

My only concern (probably not to be dealt with in this PR) is that (mainly in tests) we're still using grace period for C&P commitments while we should use their respective windows.

tools/scripts/params/shared_all.json Outdated Show resolved Hide resolved
x/proof/keeper/msg_server_submit_proof_test.go Outdated Show resolved Hide resolved
testutil/keeper/params.go Show resolved Hide resolved
@bryanchriswhite bryanchriswhite linked an issue Jun 27, 2024 that may be closed by this pull request
15 tasks
…period

* pokt/main:
  [Relayminer] off-chain claim/proof message distribution (#619)
@@ -173,3 +177,15 @@ func validateIsUint64(value any) error {

return nil
}

func validateClaimWindowOpenOffsetIsAtLeastGracePeriodEndOffset(params *Params) error {
Copy link
Contributor

Choose a reason for hiding this comment

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

🔥

Copy link
Contributor

@red-0ne red-0ne left a comment

Choose a reason for hiding this comment

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

Love the grace period/claim window open enforcement.

Approving.

@bryanchriswhite bryanchriswhite dismissed Olshansk’s stale review June 28, 2024 21:04

Change request addressed

@bryanchriswhite bryanchriswhite merged commit e208b42 into main Jun 28, 2024
10 checks passed
@bryanchriswhite bryanchriswhite deleted the issues/586/param/grace-period branch June 28, 2024 22:43
bryanchriswhite added a commit that referenced this pull request Jun 28, 2024
…tor+feat

* pokt/main:
  [On-Chain] Refactor `grace_period_end_offset_blocks` as a `shared` module param (#628)
  [Docs] Add "Session Windows & On-Chain Parameters" section to claim/proof/lifecycle docs (#632)
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
devnet devnet-test-e2e on-chain On-chain business logic push-image CI related - pushes images to ghcr.io
Projects
Status: ✅ Done
Development

Successfully merging this pull request may close these issues.

[TODO] @bryanchriswhite's Iteration16 TODOs
3 participants