Skip to content

Commit

Permalink
Merge pull request #1370 from chengwenxi/redelegate-tags
Browse files Browse the repository at this point in the history
R4R: Add more tags for redelegate
  • Loading branch information
Haifeng Xi authored Mar 22, 2019
2 parents 557e7a4 + 2734c91 commit 4a0a203
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 0 deletions.
3 changes: 3 additions & 0 deletions modules/stake/handler.go
Original file line number Diff line number Diff line change
Expand Up @@ -247,6 +247,9 @@ func handleMsgBeginRedelegate(ctx sdk.Context, msg types.MsgBeginRedelegate, k k
tags.SrcValidator, []byte(msg.ValidatorSrcAddr.String()),
tags.DstValidator, []byte(msg.ValidatorDstAddr.String()),
tags.EndTime, []byte(red.MinTime.String()),
tags.Balance, []byte(red.Balance.String()),
tags.SharesSrc, []byte(red.SharesSrc.String()),
tags.SharesDst, []byte(red.SharesDst.String()),
)
return sdk.Result{Data: finishTime, Tags: tags}
}
3 changes: 3 additions & 0 deletions modules/stake/tags/tags.go
Original file line number Diff line number Diff line change
Expand Up @@ -21,4 +21,7 @@ var (
Moniker = "moniker"
Identity = "identity"
EndTime = "end-time"
Balance = "balance"
SharesSrc = "shares-src"
SharesDst = "shares-dst"
)

0 comments on commit 4a0a203

Please sign in to comment.