Skip to content

Commit

Permalink
chore: update bouncer expected number of nonces
Browse files Browse the repository at this point in the history
  • Loading branch information
albert-llimos committed Feb 13, 2025
1 parent 3d3eaad commit 5a286ba
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions bouncer/shared/utils.ts
Original file line number Diff line number Diff line change
Expand Up @@ -1183,11 +1183,11 @@ export async function checkAvailabilityAllSolanaNonces() {
const availableNonces = (await chainflip.query.environment.solanaAvailableNonceAccounts())
// eslint-disable-next-line @typescript-eslint/no-explicit-any
.toJSON() as any[];
if (availableNonces.length === solanaNumberOfNonces) {
if (availableNonces.length === solanaNumberOfNonces + solanaNumberOfAdditionalNonces) {
break;
} else if (attempt === maxRetries - 1) {
throw new Error(
`Unexpected number of available nonces: ${availableNonces.length}, expected ${solanaNumberOfNonces}`,
`Unexpected number of available nonces: ${availableNonces.length}, expected ${solanaNumberOfNonces + solanaNumberOfAdditionalNonces}`,
);
} else {
await sleep(6000);
Expand Down

0 comments on commit 5a286ba

Please sign in to comment.