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

Add rewards and commission tags #4200

Closed
wants to merge 1 commit into from

Conversation

alexanderbez
Copy link
Contributor

@alexanderbez alexanderbez commented Apr 26, 2019

Add rewards and commission tags to their respective txs.

closes: #3850


  • Targeted PR against correct branch (see CONTRIBUTING.md)

  • Linked to github-issue with discussion and accepted design OR link to spec that describes this work.

  • Wrote tests

  • Updated relevant documentation (docs/)

  • Added a relevant changelog entry: sdkch add [section] [stanza] [message]

  • rereviewed Files changed in the github PR explorer


For Admin Use:

  • Added appropriate labels to PR (ex. wip, ready-for-review, docs)
  • Reviewers Assigned
  • Squashed all commits, uses message "Merge pull request #XYZ: [title]" (coding standards)

@alexanderbez alexanderbez added WIP C:x/distribution distribution module related labels Apr 26, 2019
@alexanderbez alexanderbez marked this pull request as ready for review April 26, 2019 13:58
@alexanderbez alexanderbez requested review from fedekunze and sabau April 26, 2019 13:58
@alexanderbez alexanderbez force-pushed the 3850-include-rewards-in-withdraw-tx branch from a4d9b09 to 2c0ef50 Compare April 26, 2019 14:07
@codecov
Copy link

codecov bot commented Apr 26, 2019

Codecov Report

Merging #4200 into develop will decrease coverage by 0.05%.
The diff coverage is 35%.

@@             Coverage Diff             @@
##           develop    #4200      +/-   ##
===========================================
- Coverage     60.2%   60.15%   -0.06%     
===========================================
  Files          212      212              
  Lines        15187    15188       +1     
===========================================
- Hits          9143     9136       -7     
- Misses        5415     5423       +8     
  Partials       629      629

@alexanderbez alexanderbez removed the request for review from cwgoes April 26, 2019 14:10
@rfunduk
Copy link

rfunduk commented Apr 26, 2019

Does this add tags to existing disbursement related transactions only? One of the main things we're looking for is how to handle/get info on the automated disbursements (when commission changes, and so on). Re: #3956

@alexanderbez
Copy link
Contributor Author

Hey @rfunduk, this is only going to apply to new txs going forward once this feature is included in mainnet. #3956 should track the remainder of any distribution related tags.

Copy link
Collaborator

@fedekunze fedekunze left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

ACK

@rfunduk
Copy link

rfunduk commented Apr 26, 2019

@alexanderbez sorry by existing I mean existing transaction types. Like when the delegator specifically requests a withdrawal, as opposed to 'automated' withdrawals that currently leave no trace at all on the chain - such as when a validator changes their commission (and there are a few other cases, not all of which I believe I am aware of, which is part of the problem!).

It sounds like the answer is yes, though. Just the current transaction types are going to get these tags, and new transactions for the ones that are currently missing/leave no record will be handled separately.

@alexanderbez
Copy link
Contributor Author

@rfunduk yes withdraw transactions will now have these tags.

@ebuchman ebuchman closed this Apr 26, 2019
@alexanderbez alexanderbez deleted the 3850-include-rewards-in-withdraw-tx branch April 26, 2019 23:11
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
C:x/distribution distribution module related
Projects
None yet
Development

Successfully merging this pull request may close these issues.

4 participants