Skip to content

feat: Support accepting/declining rewards in yahcli DAB transactions #19255

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

Open
wants to merge 1 commit into
base: main
Choose a base branch
from

Conversation

mhess-swl
Copy link
Contributor

@mhess-swl mhess-swl commented May 16, 2025

Description:

This version of yahcli adds support for defining node rewards behavior in the dynamic address book. For yahcli node create commands, the new --declineRewards flag indicates such to the consensus node, while a value of --declineRewards false indicates the intent to accept rewards. The node update command, keeping with the format of the staking command, now has two additional parameters: --startDecliningRewards and stopDecliningRewards, where of course 'stop declining rewards' means 'start accepting rewards.'

Closes #19247

@mhess-swl mhess-swl added this to the v0.61 milestone May 16, 2025
@mhess-swl mhess-swl requested a review from tinker-michaelj May 16, 2025 18:56
@mhess-swl mhess-swl self-assigned this May 16, 2025
@mhess-swl mhess-swl requested review from a team as code owners May 16, 2025 18:56
Copy link

Coverage summary from Codacy

See diff coverage on Codacy

Coverage variation Diff coverage
+0.00% (target: -1.00%)
Coverage variation details
Coverable lines Covered lines Coverage
Common ancestor commit (5ce3583) 100660 73789 73.31%
Head commit (4be8705) 100660 (+0) 73785 (-4) 73.30% (+0.00%)

Coverage variation is the difference between the coverage for the head and common ancestor commits of the pull request branch: <coverage of head commit> - <coverage of common ancestor commit>

Diff coverage details
Coverable lines Covered lines Diff coverage
Pull request (#19255) 0 0 ∅ (not applicable)

Diff coverage is the percentage of lines that are covered by tests out of the coverable lines that the pull request added or modified: <covered lines added or modified>/<coverable lines added or modified> * 100%

See your quality gate settings    Change summary preferences

Copy link

codecov bot commented May 16, 2025

Codecov Report

All modified and coverable lines are covered by tests ✅

Impacted file tree graph

@@             Coverage Diff              @@
##               main   #19255      +/-   ##
============================================
- Coverage     69.36%   69.35%   -0.01%     
+ Complexity    23271    23269       -2     
============================================
  Files          2645     2645              
  Lines        100710   100710              
  Branches      10409    10409              
============================================
- Hits          69855    69851       -4     
- Misses        26891    26895       +4     
  Partials       3964     3964              

see 3 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.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Update yahcli NodeUpdate for toggling decline_reward flag
1 participant