Skip to content
This repository has been archived by the owner on Jun 13, 2024. It is now read-only.

Commit

Permalink
get next ecpected round greater than the most distant round to recover
Browse files Browse the repository at this point in the history
  • Loading branch information
seromenho committed Aug 25, 2022
1 parent 8dfec4f commit 1b137e9
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 2 deletions.
3 changes: 2 additions & 1 deletion services/app/src/utils/algo-utils.ts
Original file line number Diff line number Diff line change
Expand Up @@ -118,7 +118,8 @@ export const getNextExpectedRound = async (lastRound: number): Promise<number |

const recoverUntilRound = lastRound - mostDistantRoundsAllowed
if (lastRoundAcceptedBySC < recoverUntilRound) {
return recoverUntilRound - (recoverUntilRound % 8)
// Disaster recovery
return recoverUntilRound + vrfRoundMultiple - (recoverUntilRound % vrfRoundMultiple)
}

const nextExpectedRound = lastRoundAcceptedBySC + vrfRoundMultiple
Expand Down
2 changes: 1 addition & 1 deletion stack-eks/app/dev/app.daemonset.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -73,7 +73,7 @@ spec:
- name: DD_LOGS_INJECTION
value: "true"
- name: MOST_DISTANT_ROUNDS_ALLOWED
value: "984"
value: "992"
- name: VRF_ROUND_MULTIPLE
value: "8"
- name: MAIN_LOOP_INTERVAL
Expand Down

0 comments on commit 1b137e9

Please sign in to comment.