Skip to content

Commit

Permalink
added end-time to tags
Browse files Browse the repository at this point in the history
  • Loading branch information
sunnya97 committed Sep 28, 2018
1 parent d6f610a commit 2baada9
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 0 deletions.
2 changes: 2 additions & 0 deletions x/stake/handler.go
Original file line number Diff line number Diff line change
Expand Up @@ -221,6 +221,7 @@ func handleMsgBeginUnbonding(ctx sdk.Context, msg types.MsgBeginUnbonding, k kee
tags.Action, tags.ActionBeginUnbonding,
tags.Delegator, []byte(msg.DelegatorAddr.String()),
tags.SrcValidator, []byte(msg.ValidatorAddr.String()),
tags.EndTime, finishTime,
)
return sdk.Result{Data: finishTime, Tags: tags}
}
Expand All @@ -239,6 +240,7 @@ func handleMsgBeginRedelegate(ctx sdk.Context, msg types.MsgBeginRedelegate, k k
tags.Delegator, []byte(msg.DelegatorAddr.String()),
tags.SrcValidator, []byte(msg.ValidatorSrcAddr.String()),
tags.DstValidator, []byte(msg.ValidatorDstAddr.String()),
tags.EndTime, finishTime,
)
return sdk.Result{Data: finishTime, Tags: tags}
}
1 change: 1 addition & 0 deletions x/stake/tags/tags.go
Original file line number Diff line number Diff line change
Expand Up @@ -20,4 +20,5 @@ var (
Delegator = sdk.TagDelegator
Moniker = "moniker"
Identity = "identity"
EndTime = "end-time"
)

0 comments on commit 2baada9

Please sign in to comment.