Skip to content

Commit 5101cdf

Browse files
committed
optimize
1 parent 4efd205 commit 5101cdf

1 file changed

Lines changed: 8 additions & 0 deletions

File tree

x/dlc/keeper/liveness.go

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -96,6 +96,14 @@ func (k Keeper) UpdateOracleParticipantsLiveness(ctx sdk.Context, participants [
9696
ConsensusPubkey: participant,
9797
IsAlive: true,
9898
})
99+
100+
continue
99101
}
102+
103+
// set to alive status
104+
liveness := k.GetOracleParticipantLiveness(ctx, participant)
105+
liveness.IsAlive = true
106+
107+
k.SetOracleParticipantLiveness(ctx, liveness)
100108
}
101109
}

0 commit comments

Comments
 (0)