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

feat!: Allow inactive provider chain validators to validate on consumer chains #2079

Merged
merged 54 commits into from
Aug 6, 2024

Commits on Jul 22, 2024

  1. refactor!: Refactor the validator set storage and add provider consen…

    …sus validator storage (#1990)
    
    * Refactor validator set storage
    
    * Add comment for getTotalPower
    
    * Add provider consensus validator set storage
    
    * Add key to key test
    
    * Add unit test for LastTotalProviderConsensusPower
    
    * Address comments
    p-offtermatt committed Jul 22, 2024
    Configuration menu
    Copy the full SHA
    b9928d4 View commit details
    Browse the repository at this point in the history
  2. feat!: Introduce the MaxProviderConsensusValidators param (#1992)

    * Refactor validator set storage
    
    * Add comment for getTotalPower
    
    * Add provider consensus validator set storage
    
    * Add new MaxProviderConsensusValidators param
    
    * Add validation for MaxProviderConsensusValidators
    
    * Add function to get MaxProviderConsensusValidators param
    
    * refactor!: Refactor the validator set storage and add provider consensus validator storage (#1990)
    
    * Refactor validator set storage
    
    * Add comment for getTotalPower
    
    * Add provider consensus validator set storage
    
    * Add key to key test
    
    * Add unit test for LastTotalProviderConsensusPower
    
    * Address comments
    p-offtermatt committed Jul 22, 2024
    Configuration menu
    Copy the full SHA
    b28b139 View commit details
    Browse the repository at this point in the history
  3. feat!: Wire the provider module to return ValidatorUpdates, instead o…

    …f the staking module (#1993)
    
    * Refactor validator set storage
    
    * Add comment for getTotalPower
    
    * Add provider consensus validator set storage
    
    * Add new MaxProviderConsensusValidators param
    
    * Add validation for MaxProviderConsensusValidators
    
    * Add no_valupdates_staking module
    
    * Add function to get MaxProviderConsensusValidators param
    
    * Start returning validators in EndBlock
    
    * Fix tests
    
    * Revert cosmetic change
    
    * Revert cosmetic changes
    
    * Revert formatting
    
    * Add genutil replacer module
    
    * Revert formatting
    
    * Revert formatting in tests/integration
    
    * Revert minor formatting
    
    * Fix type
    
    * Change wrapped staking to conform to EndBlocker interface
    
    * Fix typo
    
    * Revert "Fix typo"
    
    This reverts commit 62dfd1e.
    
    * Add e2e test for inactive vals
    
    * Start fixing e2e test
    
    * Revert formatting changes
    
    * Remove more formatting
    
    * Revert extra formatting
    
    * Re-wire provider/app.go to use wrapped modules
    
    * Remove consumer rewards check
    
    * Add inactive provider vals testcase to nightly
    
    * Adjust comment
    
    * Address comments
    
    * Fix nightly test name
    
    * feat: Initialize the max validators parameter for existing consumers (#2012)
    
    * Add initialization for validator cap
    
    * Remove migration test
    
    * Fix inconsistent naming
    p-offtermatt committed Jul 22, 2024
    Configuration menu
    Copy the full SHA
    e71129e View commit details
    Browse the repository at this point in the history
  4. test: enable the simulator for the provider module (#2005)

    * Refactor validator set storage
    
    * Add comment for getTotalPower
    
    * Add provider consensus validator set storage
    
    * Add new MaxProviderConsensusValidators param
    
    * Add validation for MaxProviderConsensusValidators
    
    * Add no_valupdates_staking module
    
    * Add function to get MaxProviderConsensusValidators param
    
    * Start returning validators in EndBlock
    
    * Fix tests
    
    * Revert cosmetic change
    
    * Revert cosmetic changes
    
    * Revert formatting
    
    * Add genutil replacer module
    
    * Revert formatting
    
    * Revert formatting in tests/integration
    
    * Revert minor formatting
    
    * Fix type
    
    * Change wrapped staking to conform to EndBlocker interface
    
    * Fix typo
    
    * Revert "Fix typo"
    
    This reverts commit 62dfd1e.
    
    * Add e2e test for inactive vals
    
    * Start fixing e2e test
    
    * Revert formatting changes
    
    * Remove more formatting
    
    * Revert extra formatting
    
    * Re-wire provider/app.go to use wrapped modules
    
    * Remove consumer rewards check
    
    * Add simulator test
    
    * Add randomly generated parameters for provider in sim
    
    * Add invariant
    
    * Add simulation to Makefile and github workflow
    
    * Use simcli instead of just passing true
    p-offtermatt committed Jul 22, 2024
    Configuration menu
    Copy the full SHA
    9788053 View commit details
    Browse the repository at this point in the history
  5. feat!: Let consumer chains choose a minimum stake and validator rank (#…

    …2035)
    
    * Add minimum stake key
    
    * Add MinValidatorRank prefix
    
    * Add keeper and tests for new parameters
    
    * Utilize MinStake and MaxRank parameters in computing next validators
    
    * Mention MinStake and MaxRank in adr
    
    * Add test for FulfillsMinStake
    
    * Handle multiple validators with same power
    
    * Add min stake and max rank to docs
    
    * Add minStake and maxRank to proposals
    
    * Check for untyped equality
    
    * Handle minStake and maxRank in Msgs
    
    * Add integration test for min stake and max rank
    
    * Rename test and testfile
    
    * Update docs/docs/adrs/adr-017-allowing-inactive-validators.md
    
    * Add changelog entries for maxrank and minstake
    
    * Address comments
    
    * Clarify which feature is disabled by setting maxrank
    
    * Test validator powers cap and validator set cap into int param testing function
    p-offtermatt committed Jul 22, 2024
    Configuration menu
    Copy the full SHA
    3db7f3d View commit details
    Browse the repository at this point in the history
  6. feat!: Rewire dependencies on the staking module (#2056)

    * Change wiring for mint and gov to use ProviderKeeper instead of StakingKeeper
    
    * Add test for IterateBondedValidatorsByPower
    
    * Rewire GovKeeper
    
    * Fix docstrings
    
    * Test other modified functions
    
    * Start writing some testing scenarios
    
    * Add TotalBondedTokens to expected staking keeper interface
    p-offtermatt committed Jul 22, 2024
    Configuration menu
    Copy the full SHA
    934550f View commit details
    Browse the repository at this point in the history
  7. feat: Calculate Top N based on active validators only (#2070)

    * Add test for inactive vals with top N
    
    * Add test case to predefined tests
    
    * Fix bonded/active validator distinction
    
    * Fix relay test to set max provider consensus vals correctly
    
    * feat!: Add a parameter that determines whether consumer chains allow inactive validators to validate them (#2066)
    
    * Introduce new AllowInactiveValidators param for consumer chains
    
    * Add AllowInactiveValidators param to tests
    
    * Set MaxProviderConsensusValidators in tests
    
    * Add migration to initialize inactive vals
    
    * Add changelog entries for inactive vals param
    
    * Add property-based test for inactive vals
    
    * Add docs for inactive vals param
    
    * Set AllowInactiveVals parameter in e2e test
    
    * test: Add e2e tests for inactive vals (#2064)
    
    * Start adding e2e test for governance
    
    * Debug gov with inactive vals test
    
    * Outline for test scenarios where they are tested
    
    * Add MaxRank steps
    
    * Add e2e tests for min stake and max rank
    
    * Revert formatting change
    
    * Refactor stepsOptIn
    
    * Use adjusted config for e2e tests
    
    * Write for more scenarios where they are tested
    
    * Add test for mint
    
    * Add docstrings for e2e steps
    p-offtermatt committed Jul 22, 2024
    Configuration menu
    Copy the full SHA
    1b40c17 View commit details
    Browse the repository at this point in the history

Commits on Jul 24, 2024

  1. Configuration menu
    Copy the full SHA
    0f4651b View commit details
    Browse the repository at this point in the history
  2. Address comments

    p-offtermatt committed Jul 24, 2024
    Configuration menu
    Copy the full SHA
    e5f155d View commit details
    Browse the repository at this point in the history
  3. Address more comments

    p-offtermatt committed Jul 24, 2024
    Configuration menu
    Copy the full SHA
    b97ab26 View commit details
    Browse the repository at this point in the history
  4. Add migration for param

    p-offtermatt committed Jul 24, 2024
    Configuration menu
    Copy the full SHA
    4bfc1df View commit details
    Browse the repository at this point in the history
  5. Configuration menu
    Copy the full SHA
    8a67a8a View commit details
    Browse the repository at this point in the history
  6. Fix tests

    p-offtermatt committed Jul 24, 2024
    Configuration menu
    Copy the full SHA
    5ceaffc View commit details
    Browse the repository at this point in the history
  7. Configuration menu
    Copy the full SHA
    a859f7a View commit details
    Browse the repository at this point in the history
  8. Configuration menu
    Copy the full SHA
    92904e9 View commit details
    Browse the repository at this point in the history
  9. Configuration menu
    Copy the full SHA
    9ab14ee View commit details
    Browse the repository at this point in the history
  10. Configuration menu
    Copy the full SHA
    8024804 View commit details
    Browse the repository at this point in the history

Commits on Jul 25, 2024

  1. Configuration menu
    Copy the full SHA
    264b642 View commit details
    Browse the repository at this point in the history
  2. Configuration menu
    Copy the full SHA
    22bfde8 View commit details
    Browse the repository at this point in the history

Commits on Jul 26, 2024

  1. Remove max rank

    p-offtermatt committed Jul 26, 2024
    Configuration menu
    Copy the full SHA
    42c05b2 View commit details
    Browse the repository at this point in the history
  2. Configuration menu
    Copy the full SHA
    ff2f074 View commit details
    Browse the repository at this point in the history
  3. Configuration menu
    Copy the full SHA
    60bf261 View commit details
    Browse the repository at this point in the history
  4. Configuration menu
    Copy the full SHA
    7fbb134 View commit details
    Browse the repository at this point in the history
  5. Configuration menu
    Copy the full SHA
    da4dd8e View commit details
    Browse the repository at this point in the history
  6. Configuration menu
    Copy the full SHA
    f4ce5b1 View commit details
    Browse the repository at this point in the history
  7. Remove canary

    p-offtermatt committed Jul 26, 2024
    Configuration menu
    Copy the full SHA
    75bb7a9 View commit details
    Browse the repository at this point in the history
  8. Configuration menu
    Copy the full SHA
    af528c7 View commit details
    Browse the repository at this point in the history
  9. Configuration menu
    Copy the full SHA
    74b4b94 View commit details
    Browse the repository at this point in the history
  10. Configuration menu
    Copy the full SHA
    9b9a945 View commit details
    Browse the repository at this point in the history
  11. Remove TODO

    p-offtermatt committed Jul 26, 2024
    Configuration menu
    Copy the full SHA
    a73ef5a View commit details
    Browse the repository at this point in the history
  12. Remove decoder

    p-offtermatt committed Jul 26, 2024
    Configuration menu
    Copy the full SHA
    0726e63 View commit details
    Browse the repository at this point in the history

Commits on Jul 29, 2024

  1. Run go mod tidy

    p-offtermatt committed Jul 29, 2024
    Configuration menu
    Copy the full SHA
    837d111 View commit details
    Browse the repository at this point in the history
  2. Configuration menu
    Copy the full SHA
    0c2b427 View commit details
    Browse the repository at this point in the history

Commits on Aug 1, 2024

  1. Configuration menu
    Copy the full SHA
    8c06477 View commit details
    Browse the repository at this point in the history
  2. Fix tests

    p-offtermatt committed Aug 1, 2024
    Configuration menu
    Copy the full SHA
    4efaa98 View commit details
    Browse the repository at this point in the history

Commits on Aug 2, 2024

  1. Configuration menu
    Copy the full SHA
    a35e39b View commit details
    Browse the repository at this point in the history
  2. Rename simulation jobs

    p-offtermatt committed Aug 2, 2024
    Configuration menu
    Copy the full SHA
    4a01439 View commit details
    Browse the repository at this point in the history
  3. Update UPGRADING.md

    Co-authored-by: Marius Poke <marius.poke@posteo.de>
    p-offtermatt and mpoke committed Aug 2, 2024
    Configuration menu
    Copy the full SHA
    fb6d09f View commit details
    Browse the repository at this point in the history
  4. Update UPGRADING.md

    Co-authored-by: Marius Poke <marius.poke@posteo.de>
    p-offtermatt and mpoke committed Aug 2, 2024
    Configuration menu
    Copy the full SHA
    5cb6376 View commit details
    Browse the repository at this point in the history
  5. Update x/ccv/provider/keeper/genesis.go

    Co-authored-by: Marius Poke <marius.poke@posteo.de>
    p-offtermatt and mpoke committed Aug 2, 2024
    Configuration menu
    Copy the full SHA
    1860933 View commit details
    Browse the repository at this point in the history
  6. Configuration menu
    Copy the full SHA
    266e9da View commit details
    Browse the repository at this point in the history
  7. Address some comments

    p-offtermatt committed Aug 2, 2024
    Configuration menu
    Copy the full SHA
    7c96789 View commit details
    Browse the repository at this point in the history
  8. Remake protos

    p-offtermatt committed Aug 2, 2024
    Configuration menu
    Copy the full SHA
    24823a6 View commit details
    Browse the repository at this point in the history
  9. Configuration menu
    Copy the full SHA
    a7b1140 View commit details
    Browse the repository at this point in the history
  10. Address some comments

    p-offtermatt committed Aug 2, 2024
    Configuration menu
    Copy the full SHA
    aeb2e96 View commit details
    Browse the repository at this point in the history
  11. Address comments

    p-offtermatt committed Aug 2, 2024
    Configuration menu
    Copy the full SHA
    2c70e3b View commit details
    Browse the repository at this point in the history
  12. Reorder tests

    p-offtermatt committed Aug 2, 2024
    Configuration menu
    Copy the full SHA
    ed7e12d View commit details
    Browse the repository at this point in the history
  13. Configuration menu
    Copy the full SHA
    484cb7d View commit details
    Browse the repository at this point in the history

Commits on Aug 5, 2024

  1. Address comments

    p-offtermatt committed Aug 5, 2024
    Configuration menu
    Copy the full SHA
    930a482 View commit details
    Browse the repository at this point in the history
  2. Add error logging

    p-offtermatt committed Aug 5, 2024
    Configuration menu
    Copy the full SHA
    20345bd View commit details
    Browse the repository at this point in the history
  3. Configuration menu
    Copy the full SHA
    46dbb4e View commit details
    Browse the repository at this point in the history
  4. Configuration menu
    Copy the full SHA
    c3b36e6 View commit details
    Browse the repository at this point in the history
  5. Update docs/docs/adrs/adr-017-allowing-inactive-validators.md

    Co-authored-by: insumity <karolos@informal.systems>
    p-offtermatt and insumity committed Aug 5, 2024
    Configuration menu
    Copy the full SHA
    bf35f2c View commit details
    Browse the repository at this point in the history
  6. Clarify: Slash happens on provider

    Co-authored-by: insumity <karolos@informal.systems>
    p-offtermatt and insumity committed Aug 5, 2024
    Configuration menu
    Copy the full SHA
    f3b7995 View commit details
    Browse the repository at this point in the history