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

stake-tracker feedback PR #4411

Conversation

gpestana
Copy link
Contributor

@gpestana gpestana commented May 8, 2024

  • Changes the target list score type from balance to u128 (ExtendedBalance)
    • simplifies balance/ vote_weight/ extended_balance conversions
    • relies less on the currency total issuance call
    • ensures approval stake calculations/storage is safe
  • Simplifies stake tracker logic
    • removes a few redundant checks
    • split on_stake_update code
  • Ensures VoterUpdateMode is taken into consideration in try-state checks
    • use voter mode lazy in benchmarks
    • update weights + check the diff with voter lazy
  • Docs improvements
  • All tests passing after merging validator disabling and virtual stakers

new

  • ensures duplicate nominations are dedup before calculating the approvals stake
  • chills nominator after total slash to ensure the target can be reaped/kill without leaving nominations behind.
  • ensures that switching from validator to nominator and back is correct

Other experiments: (not included)

@gpestana
Copy link
Contributor Author

gpestana commented May 8, 2024

bot bench substrate-pallet --pallet=pallet_staking

@command-bot
Copy link

command-bot bot commented May 8, 2024

@gpestana https://gitlab.parity.io/parity/mirrors/polkadot-sdk/-/jobs/6161496 was started for your command "$PIPELINE_SCRIPTS_DIR/commands/bench/bench.sh" --subcommand=pallet --runtime=dev --target_dir=substrate --pallet=pallet_staking. Check out https://gitlab.parity.io/parity/mirrors/polkadot-sdk/-/pipelines?page=1&scope=all&username=group_605_bot to know what else is being executed currently.

Comment bot cancel 2-6e8d8d4d-a8e7-4c1b-b331-7cdbe4e6ccf0 to cancel this command or bot cancel to cancel all commands in this pull request.

@gpestana gpestana changed the title Feedback PR stake-tracker feedback PR May 8, 2024
@command-bot
Copy link

command-bot bot commented May 8, 2024

@gpestana Command "$PIPELINE_SCRIPTS_DIR/commands/bench/bench.sh" --subcommand=pallet --runtime=dev --target_dir=substrate --pallet=pallet_staking has finished. Result: https://gitlab.parity.io/parity/mirrors/polkadot-sdk/-/jobs/6161496 has finished. If any artifacts were generated, you can download them from https://gitlab.parity.io/parity/mirrors/polkadot-sdk/-/jobs/6161496/artifacts/download.

@gpestana
Copy link
Contributor Author

gpestana commented May 8, 2024

bot bench substrate-pallet --pallet=pallet_staking

@command-bot
Copy link

command-bot bot commented May 8, 2024

@gpestana https://gitlab.parity.io/parity/mirrors/polkadot-sdk/-/jobs/6162598 was started for your command "$PIPELINE_SCRIPTS_DIR/commands/bench/bench.sh" --subcommand=pallet --runtime=dev --target_dir=substrate --pallet=pallet_staking. Check out https://gitlab.parity.io/parity/mirrors/polkadot-sdk/-/pipelines?page=1&scope=all&username=group_605_bot to know what else is being executed currently.

Comment bot cancel 3-82109c79-e83d-4168-927d-d643f6aa4301 to cancel this command or bot cancel to cancel all commands in this pull request.

@gpestana gpestana added the R0-silent Changes should not be mentioned in any release notes label May 8, 2024
…=dev --target_dir=substrate --pallet=pallet_staking
@command-bot
Copy link

command-bot bot commented May 8, 2024

@gpestana Command "$PIPELINE_SCRIPTS_DIR/commands/bench/bench.sh" --subcommand=pallet --runtime=dev --target_dir=substrate --pallet=pallet_staking has finished. Result: https://gitlab.parity.io/parity/mirrors/polkadot-sdk/-/jobs/6162598 has finished. If any artifacts were generated, you can download them from https://gitlab.parity.io/parity/mirrors/polkadot-sdk/-/jobs/6162598/artifacts/download.

@paritytech-cicd-pr
Copy link

The CI pipeline was cancelled due to failure one of the required jobs.
Job name: cargo-clippy
Logs: https://gitlab.parity.io/parity/mirrors/polkadot-sdk/-/jobs/6170835

@gpestana gpestana merged commit 628bceb into gpestana/stake-tracker_integration May 10, 2024
22 of 140 checks passed
@gpestana gpestana deleted the gpestana/stake-tracker_integration_final-feedback branch May 10, 2024 09:54
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
R0-silent Changes should not be mentioned in any release notes
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants