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

[Proof Module] Add proof_requirement_threshold param #595

Merged
merged 22 commits into from
Jun 12, 2024

Conversation

bryanchriswhite
Copy link
Contributor

@bryanchriswhite bryanchriswhite commented Jun 7, 2024

Summary

Add proof_requirement_threshold param to the proof module.

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 bryanchriswhite added on-chain On-chain business logic push-image CI related - pushes images to ghcr.io devnet-test-e2e labels Jun 7, 2024
@bryanchriswhite bryanchriswhite self-assigned this Jun 7, 2024
Copy link

github-actions bot commented Jun 7, 2024

The CI will now also run the e2e tests on devnet, which increases the time it takes to complete all CI checks.

You may need to run make trigger_ci to submit an empty commit that'll trigger the tests.

GCP workloads (requires changing the namespace to 595)
Grafana network dashboard for devnet-issue-{issue-id}

@github-actions github-actions bot added the devnet label Jun 7, 2024
Copy link

github-actions bot commented Jun 7, 2024

The image is going to be pushed after the next commit.

You can use make trigger_ci to push an empty commit.

If you also want to run E2E tests, please add devnet-test-e2e label.

config.yml Outdated Show resolved Hide resolved
@bryanchriswhite bryanchriswhite force-pushed the issues/579/param/proof_requirement_threshold branch from f59a006 to 60c6de8 Compare June 7, 2024 11:40
@bryanchriswhite bryanchriswhite force-pushed the issues/579/param/proof_requirement_threshold branch from 60c6de8 to a4f6ac0 Compare June 7, 2024 11:42
@bryanchriswhite bryanchriswhite marked this pull request as ready for review June 7, 2024 11:42
@bryanchriswhite bryanchriswhite requested a review from Olshansk June 7, 2024 11:42
…request_probability

* pokt/main:
  [Proof Module] feat: on-chain proof window validation (#588)
@bryanchriswhite bryanchriswhite changed the base branch from issues/579/param/proof_request_probability to main June 7, 2024 12:04
…requirement_threshold

* pokt/main:
  [Proof Module] Add `proof_request_probability` param (#593)
@Olshansk Olshansk changed the title [Proof Module] Add proof_requirement_threshold param [Proof Module] Add proof_requirement_threshold param Jun 10, 2024
proto/poktroll/proof/params.proto Outdated Show resolved Hide resolved
@@ -24,8 +24,8 @@ func TestParams_ValidateMinRelayDifficulty(t *testing.T) {
}{
{
desc: "invalid type",
Copy link
Member

Choose a reason for hiding this comment

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

invalid type or invalid value?

Copy link
Contributor Author

Choose a reason for hiding this comment

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

Invalid type. It should be a uint64 but this test case uses int64.

@bryanchriswhite
Copy link
Contributor Author

Bypassing failing E2E tests, which passed in 151c4e3. Subsequent commits don't modify any code.

@bryanchriswhite bryanchriswhite merged commit 08268cf into main Jun 12, 2024
11 of 12 checks passed
@bryanchriswhite bryanchriswhite linked an issue Jun 12, 2024 that may be closed by this pull request
8 tasks
bryanchriswhite added a commit that referenced this pull request Jun 12, 2024
…missing_penalty

* pokt/main:
  [Proof Module] Add `proof_requirement_threshold` param (#595)
@bryanchriswhite bryanchriswhite deleted the issues/579/param/proof_requirement_threshold branch June 12, 2024 18:49
bryanchriswhite added a commit that referenced this pull request Jun 13, 2024
…accounts' into issues/579/test/tokenomics-keeper

* pokt/issues/579/refactor/pre-generated-accounts:
  chore: review feedback improvements
  [Proof Module] Add `proof_requirement_threshold` param (#595)
  chore: review improvements
  refactor: proof_missing_penalty to cosmos.base.v1beta1.Coin type
  Empty commit
  fix: keyring.Keyring#NewAccount() arg ordering
  [Grafana] Improve grafana in preparation for relay mining stress test (#599)
  [Relay Mining] Foundation for integration test helpers + start integrating Relay Mining into EndBlocker (#571)
  chore: update yarn.lock
  docs: add adding on-chain params page
  chore: self-review
  chore: review
bryanchriswhite added a commit that referenced this pull request Jun 13, 2024
…/probabilistic-proofs

* issues/579/test/tokenomics-keeper:
  chore: review improvements
  chore: review feedback improvements
  [Proof Module] Add `proof_requirement_threshold` param (#595)
  chore: review improvements
  refactor: proof_missing_penalty to cosmos.base.v1beta1.Coin type
  Empty commit
  fix: keyring.Keyring#NewAccount() arg ordering
  [Grafana] Improve grafana in preparation for relay mining stress test (#599)
  [Relay Mining] Foundation for integration test helpers + start integrating Relay Mining into EndBlocker (#571)
  chore: update yarn.lock
  docs: add adding on-chain params page
  chore: self-review
  chore: review
bryanchriswhite added a commit that referenced this pull request Jun 13, 2024
…hore/telemetry

* issues/579/feat/probabilistic-proofs:
  chore: post-merge cleanup
  chore: review improvements
  chore: review feedback improvements
  fix: failing CI unit test
  test: add coverage for tokenomicstypes.Keeper#isProofRequired()
  fix: use seeded deterministic PRNG
  [Proof Module] Add `proof_requirement_threshold` param (#595)
  chore: review improvements
  refactor: proof_missing_penalty to cosmos.base.v1beta1.Coin type
  Empty commit
  fix: keyring.Keyring#NewAccount() arg ordering
  [Grafana] Improve grafana in preparation for relay mining stress test (#599)
  [Relay Mining] Foundation for integration test helpers + start integrating Relay Mining into EndBlocker (#571)
  chore: update yarn.lock
  docs: add adding on-chain params page
  chore: self-review
  chore: review
okdas pushed a commit that referenced this pull request Nov 14, 2024
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.

[Probabilistic Proofs] Implement the first version of Probabilistic Proofs
2 participants