Skip to content

Commit

Permalink
fix: add polling interval to outer provider (#732)
Browse files Browse the repository at this point in the history
Signed-off-by: Matt Rice <matthewcrice32@gmail.com>
  • Loading branch information
mrice32 committed Sep 12, 2024
1 parent 8183696 commit 6b53123
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions src/providers/retryProvider.ts
Original file line number Diff line number Diff line change
Expand Up @@ -53,6 +53,8 @@ export class RetryProvider extends ethers.providers.StaticJsonRpcProvider {
});
});

this.pollingInterval = 1000;

if (this.nodeQuorumThreshold < 1 || !Number.isInteger(this.nodeQuorumThreshold)) {
throw new Error(
`nodeQuorum,Threshold cannot be < 1 and must be an integer. Currently set to ${this.nodeQuorumThreshold}`
Expand Down

0 comments on commit 6b53123

Please sign in to comment.