Skip to content

runtime: Remove ops::Add implementation for RewardAccumulator#8156

Merged
vadorovsky merged 1 commit intoanza-xyz:masterfrom
vadorovsky:reward-accumulator-add
Sep 24, 2025
Merged

runtime: Remove ops::Add implementation for RewardAccumulator#8156
vadorovsky merged 1 commit intoanza-xyz:masterfrom
vadorovsky:reward-accumulator-add

Conversation

@vadorovsky
Copy link
Copy Markdown
Member

Problem

Using + to merge different RewardAccumulator instances is not intuitive for everyone.

Summary of Changes

Replace the ops::Add implementation with a custom merge method.

@vadorovsky vadorovsky force-pushed the reward-accumulator-add branch 2 times, most recently from 099fb94 to 2be5459 Compare September 23, 2025 15:11
@codecov-commenter
Copy link
Copy Markdown

codecov-commenter commented Sep 23, 2025

Codecov Report

✅ All modified and coverable lines are covered by tests.
✅ Project coverage is 83.0%. Comparing base (67eda32) to head (0cacddc).
⚠️ Report is 6 commits behind head on master.

Additional details and impacted files
@@           Coverage Diff           @@
##           master    #8156   +/-   ##
=======================================
  Coverage    83.0%    83.0%           
=======================================
  Files         826      826           
  Lines      362298   362298           
=======================================
+ Hits       300774   300789   +15     
+ Misses      61524    61509   -15     
🚀 New features to boost your workflow:
  • ❄️ Test Analytics: Detect flaky tests, report on failures, and find test suite problems.

Comment thread runtime/src/bank/partitioned_epoch_rewards/calculation.rs Outdated
Using `+` to merge different `RewardAccumulator` instances is not
intuitive for everyone.

Replace the `ops::Add` implementation with a custom `merge` method.
@vadorovsky vadorovsky force-pushed the reward-accumulator-add branch from 2be5459 to 0cacddc Compare September 24, 2025 08:22
@vadorovsky vadorovsky merged commit 5bb68d2 into anza-xyz:master Sep 24, 2025
43 checks passed
@vadorovsky vadorovsky deleted the reward-accumulator-add branch September 24, 2025 15:37
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.

3 participants