From 6b5312361db10a13b14458490a33d073d14a0de5 Mon Sep 17 00:00:00 2001 From: Matt Rice Date: Thu, 12 Sep 2024 10:37:17 -0400 Subject: [PATCH] fix: add polling interval to outer provider (#732) Signed-off-by: Matt Rice --- src/providers/retryProvider.ts | 2 ++ 1 file changed, 2 insertions(+) diff --git a/src/providers/retryProvider.ts b/src/providers/retryProvider.ts index f77330fd..97c9896e 100644 --- a/src/providers/retryProvider.ts +++ b/src/providers/retryProvider.ts @@ -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}`