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

Commit

Permalink
Revert random backoff maximum
Browse files Browse the repository at this point in the history
  • Loading branch information
aquarat committed Aug 21, 2023
1 parent 2f91a64 commit 242cd2f
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion src/constants.ts
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@ import { ethers } from 'ethers';
export const GATEWAY_TIMEOUT_MS = 15_000;
export const PROVIDER_TIMEOUT_MS = 15_000;
export const RANDOM_BACKOFF_MIN_MS = 0;
export const RANDOM_BACKOFF_MAX_MS = 15_000;
export const RANDOM_BACKOFF_MAX_MS = 2_500;
export const PRIORITY_FEE_IN_WEI = 3_120_000_000;
// The Base Fee to Max Fee multiplier
export const BASE_FEE_MULTIPLIER = 2;
Expand Down
2 changes: 1 addition & 1 deletion src/utils.test.ts
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,7 @@ describe('prepareGoOptions', () => {
jest.spyOn(Date, 'now').mockReturnValue(1650548023000);

const expectedGoOptions = {
delay: { type: 'random' as const, minDelayMs: 0, maxDelayMs: 15_000 },
delay: { type: 'random' as const, minDelayMs: 0, maxDelayMs: 2_500 },
};
expect(prepareGoOptions(startTime, totalTimeout)).toEqual(expectedGoOptions);
});
Expand Down

0 comments on commit 242cd2f

Please sign in to comment.