diff --git a/src/providers/retryProvider.ts b/src/providers/retryProvider.ts index b99daf2d..71f9dee5 100644 --- a/src/providers/retryProvider.ts +++ b/src/providers/retryProvider.ts @@ -41,6 +41,19 @@ export class RetryProvider extends ethers.providers.StaticJsonRpcProvider { ...inputs ) ); + + // This is added for interim testing to see whether relayer fill performance improves. + // @todo: Upstream this to the SDK where the relayer's implementation will be relocated. + this.providers.forEach((provider) => { + const url = getOriginFromURL(provider.connection.url); + const { pollingInterval } = provider; + provider.pollingInterval = 1000; + logger?.debug({ + at: "RetryProvider", + message: `Dropped ${url} pollingInterval ${pollingInterval} -> ${provider.pollingInterval}.`, + }); + }); + 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}`