Skip to content

Commit

Permalink
update
Browse files Browse the repository at this point in the history
  • Loading branch information
SetarehGhorshi committed May 30, 2024
1 parent 6569bb7 commit da6c3ac
Show file tree
Hide file tree
Showing 3 changed files with 4 additions and 4 deletions.
4 changes: 2 additions & 2 deletions x/keyshare/keeper/msg_server_pub_key.go
Original file line number Diff line number Diff line change
Expand Up @@ -33,10 +33,10 @@ func (k msgServer) CreateLatestPubKey(goCtx context.Context, msg *types.MsgCreat
Commitments: msg.Commitments,
}

expHeight := params.KeyExpiry + uint64(ctx.BlockHeight())
expHeight := 10000000 + uint64(ctx.BlockHeight())
ak, found := k.GetActivePubKey(ctx)
if found {
expHeight = ak.Expiry + params.KeyExpiry
expHeight = ak.Expiry + 10000000
}

var queuedPubKey = types.QueuedPubKey{
Expand Down
2 changes: 1 addition & 1 deletion x/keyshare/keeper/msg_server_request_aggr_keyshare.go
Original file line number Diff line number Diff line change
Expand Up @@ -41,7 +41,7 @@ func (k msgServer) RequestAggrKeyshare(goCtx context.Context, msg *types.MsgRequ

ctx.EventManager().EmitEvent(
sdk.NewEvent(types.StartSendGeneralKeyShareEventType,
sdk.NewAttribute(types.StartSendGeneralKeyShareEventIdentity, id),
sdk.NewAttribute(types.StartSendGeneralKeyShareEventIdentity, msg.ReqId),
),
)

Expand Down
2 changes: 1 addition & 1 deletion x/keyshare/types/params.go
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,7 @@ var (

var (
KeyKeyExpiry = []byte("KeyExpiry")
DefaultKeyExpiry uint64 = 100
DefaultKeyExpiry uint64 = 100000
)

var (
Expand Down

0 comments on commit da6c3ac

Please sign in to comment.