Skip to content
This repository has been archived by the owner on Nov 16, 2022. It is now read-only.

cdb: Add delegation row in create validator handler #2219

Merged
merged 3 commits into from
Jul 13, 2020
Merged

Conversation

taobun
Copy link
Member

@taobun taobun commented Jul 13, 2020

Fixed: #2187

Implementation details

  • Add emitDelegation when handle MsgCreateValidator.
  • Reuse handleMsgCreateValidator on genesis txs.
  • Reuse getCurrentRewardAndCurrentRatio function in emitDelegation.

Please ensure the following requirements are met before submitting a pull request:

  • The pull request is targeted against the correct target branch
  • The pull request is linked to an issue with appropriate discussion and an accepted design OR is linked to a spec that describes the work.
  • The pull request includes a description of the implementation/work done in detail.
  • The pull request includes any and all appropriate unit/integration tests
  • You have added a relevant changelog entry to CHANGELOG_UNRELEASED.md
  • You have re-reviewed the files affected by the pull request (e.g. using the Files changed tab in the Github PR explorer)

@render
Copy link

render bot commented Jul 13, 2020

Copy link
Member

@sorawit sorawit left a comment

Choose a reason for hiding this comment

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

Thanks

@taobun taobun merged commit 961f0e1 into master Jul 13, 2020
@taobun taobun deleted the add-delegation branch July 13, 2020 11:20
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Emit SET_DELEGATION message when create validator.
3 participants