Skip to content

Commit 2c926a7

Browse files
committed
fix end blocker
1 parent 76823db commit 2c926a7

1 file changed

Lines changed: 5 additions & 0 deletions

File tree

x/btcbridge/abci.go

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -15,6 +15,8 @@ func EndBlocker(ctx sdk.Context, k keeper.Keeper) {
1515
// check if the DKG request expired
1616
if !ctx.BlockTime().Before(*req.Expiration) {
1717
req.Status = types.DKGRequestStatus_DKG_REQUEST_STATUS_TIMEDOUT
18+
k.SetDKGRequest(ctx, req)
19+
1820
continue
1921
}
2022

@@ -27,6 +29,8 @@ func EndBlocker(ctx sdk.Context, k keeper.Keeper) {
2729
// check if the DKG completion requests are valid
2830
if !types.CheckDKGCompletionRequests(completionRequests) {
2931
req.Status = types.DKGRequestStatus_DKG_REQUEST_STATUS_FAILED
32+
k.SetDKGRequest(ctx, req)
33+
3034
continue
3135
}
3236

@@ -35,5 +39,6 @@ func EndBlocker(ctx sdk.Context, k keeper.Keeper) {
3539

3640
// update status
3741
req.Status = types.DKGRequestStatus_DKG_REQUEST_STATUS_COMPLETED
42+
k.SetDKGRequest(ctx, req)
3843
}
3944
}

0 commit comments

Comments
 (0)