Skip to content

Commit

Permalink
Merge pull request #385 from QOSGroup/develop
Browse files Browse the repository at this point in the history
Develop
  • Loading branch information
TokenxyWZY authored Dec 13, 2019
2 parents a9f3004 + 8db8b95 commit 73d7c8b
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 3 deletions.
2 changes: 1 addition & 1 deletion cmd/qosd/init/account.go
Original file line number Diff line number Diff line change
Expand Up @@ -100,7 +100,7 @@ func AddLockAccount(ctx *server.Context, cdc *amino.Codec) *cobra.Command {
Example:
qosd add-lock-account --receiver qosacc1dnfqsflrl0m8csygtfg9nffh3yffg5z6mq2d0r --total-amount 10000000000000 --released-amount 1666666666664 --release-time '2019-11-27T18:00:00Z' --release-interval 1 --release-times 20"
qosd add-lock-account --receiver qosacc1dnfqsflrl0m8csygtfg9nffh3yffg5z6mq2d0r --total-amount 10000000000000 --released-amount 1666666666664 --release-time '2019-11-27T18:00:00Z' --release-interval 30 --release-times 20"
`,
RunE: func(_ *cobra.Command, args []string) error {
config := ctx.Config
Expand Down
3 changes: 1 addition & 2 deletions module/bank/abci.go
Original file line number Diff line number Diff line change
Expand Up @@ -36,8 +36,7 @@ func ReleaseLockedAccount(ctx context.Context, lockInfo LockInfo) {
// 更新lockinfo
lockInfo.ReleasedAmount = lockInfo.ReleasedAmount.Add(releaseAmount)
lockInfo.ReleaseTimes -= 1
// lockInfo.ReleaseTime = lockInfo.ReleaseTime.Add(time.Hour * 24 * time.Duration(lockInfo.ReleaseInterval))
lockInfo.ReleaseTime = lockInfo.ReleaseTime.Add(time.Hour * time.Duration(lockInfo.ReleaseInterval))
lockInfo.ReleaseTime = lockInfo.ReleaseTime.Add(time.Hour * 24 * time.Duration(lockInfo.ReleaseInterval))
mapper.SetLockInfo(ctx, lockInfo)
// 更新锁定账户
lockedAccount := mapper.GetAccount(ctx, lockInfo.LockedAccount)
Expand Down

0 comments on commit 73d7c8b

Please # to comment.