Skip to content

Conversation

@EclesioMeloJunior
Copy link

Description

Introduces an ApprovalsRewards pallet under runtime/parachains that will provide the on-chain logic to hold and calculate validators approvals rewards.

Integration

This pallet integrates with RewardsStatisticsSubsystem which collects approvals usages (approval votes used to validate/approve a candidate) and no-shows metrics. The subsystem will submit the collected data (ApprovalsTally type) signed with the validator private key to the runtime after the end of a session. This pallet will store the approvals tallies for each active validator in the session.

Checklist

  • Include benchmarks for WeightInfo calculation
  • Tests
  • Documentation

- Inject Authority Discovery to Availability Distribution
- When responding to a chunk request get the peer id and retrive its authority ids
- In the Collector store the session info which enable to get the validator index from authority ids
@EclesioMeloJunior EclesioMeloJunior requested a review from a team as a code owner December 8, 2025 14:06
@EclesioMeloJunior EclesioMeloJunior marked this pull request as draft December 8, 2025 14:18
@EclesioMeloJunior EclesioMeloJunior changed the title Stats collector on chain approval-rewards: on-chain statistics collector Dec 8, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant