Skip to content

Commit a7b7097

Browse files
committed
switch release interval to 30 days
1 parent a9f3004 commit a7b7097

File tree

2 files changed

+2
-3
lines changed

2 files changed

+2
-3
lines changed

cmd/qosd/init/account.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -100,7 +100,7 @@ func AddLockAccount(ctx *server.Context, cdc *amino.Codec) *cobra.Command {
100100
101101
Example:
102102
103-
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"
103+
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"
104104
`,
105105
RunE: func(_ *cobra.Command, args []string) error {
106106
config := ctx.Config

module/bank/abci.go

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -36,8 +36,7 @@ func ReleaseLockedAccount(ctx context.Context, lockInfo LockInfo) {
3636
// 更新lockinfo
3737
lockInfo.ReleasedAmount = lockInfo.ReleasedAmount.Add(releaseAmount)
3838
lockInfo.ReleaseTimes -= 1
39-
// lockInfo.ReleaseTime = lockInfo.ReleaseTime.Add(time.Hour * 24 * time.Duration(lockInfo.ReleaseInterval))
40-
lockInfo.ReleaseTime = lockInfo.ReleaseTime.Add(time.Hour * time.Duration(lockInfo.ReleaseInterval))
39+
lockInfo.ReleaseTime = lockInfo.ReleaseTime.Add(time.Hour * 24 * time.Duration(lockInfo.ReleaseInterval))
4140
mapper.SetLockInfo(ctx, lockInfo)
4241
// 更新锁定账户
4342
lockedAccount := mapper.GetAccount(ctx, lockInfo.LockedAccount)

0 commit comments

Comments
 (0)