Skip to content

Conversation

@mmsqe
Copy link
Collaborator

@mmsqe mmsqe commented Dec 7, 2025

Description

These queries enable debugging reward calculations by allowing user to inspect internal distribution state without exporting genesis at specific heights. User can query delegator-starting-info to get the previous period and stake, then use validator-historical-rewards with that period to retrieve cumulative reward ratios for accurate reward verification.

@github-actions github-actions bot added C:CLI C:x/distribution distribution module related labels Dec 7, 2025
@codecov
Copy link

codecov bot commented Dec 8, 2025

Codecov Report

❌ Patch coverage is 91.46341% with 7 lines in your changes missing coverage. Please review.
✅ Project coverage is 68.24%. Comparing base (70e615c) to head (7e3eacc).
⚠️ Report is 2 commits behind head on main.

Files with missing lines Patch % Lines
x/distribution/keeper/grpc_query.go 87.50% 7 Missing ⚠️
Additional details and impacted files

Impacted file tree graph

@@            Coverage Diff             @@
##             main   #25650      +/-   ##
==========================================
+ Coverage   68.21%   68.24%   +0.02%     
==========================================
  Files         894      894              
  Lines       58161    58243      +82     
==========================================
+ Hits        39674    39747      +73     
- Misses      18487    18496       +9     
Files with missing lines Coverage Δ
contrib/x/nft/module/module.go 0.00% <ø> (ø)
testutil/configurator/configurator.go 80.42% <ø> (ø)
x/distribution/autocli.go 100.00% <100.00%> (ø)
x/distribution/keeper/grpc_query.go 81.42% <87.50%> (+1.72%) ⬆️

... and 2 files with indirect coverage changes

Impacted file tree graph

🚀 New features to boost your workflow:
  • ❄️ Test Analytics: Detect flaky tests, report on failures, and find test suite problems.

@mmsqe mmsqe requested a review from aljo242 January 16, 2026 01:46
@aljo242
Copy link
Contributor

aljo242 commented Feb 2, 2026

@mmsqe just one CI check failing

@mmsqe mmsqe enabled auto-merge February 3, 2026 00:10
@mmsqe mmsqe added this pull request to the merge queue Feb 3, 2026
Merged via the queue into cosmos:main with commit 2f84385 Feb 3, 2026
49 checks passed
@mmsqe mmsqe deleted the distr_cli branch February 3, 2026 00:32
warpbuild-benchmark-bot bot added a commit to WarpBuilds/cosmos-sdk that referenced this pull request Feb 3, 2026
Cordtus pushed a commit to Cordtus/cosmos-sdk that referenced this pull request Feb 3, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

C:CLI C:x/distribution distribution module related

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants