Skip to content

Commit

Permalink
improve: changes to 9e7de096a0f8c017165aa274e81962eef889c455
Browse files Browse the repository at this point in the history
Signed-off-by: james-a-morris <jaamorris@cs.stonybrook.edu>
  • Loading branch information
james-a-morris committed Sep 3, 2024
1 parent 8a4e7ec commit 847b1eb
Showing 1 changed file with 13 additions and 0 deletions.
13 changes: 13 additions & 0 deletions src/providers/retryProvider.ts
Original file line number Diff line number Diff line change
Expand Up @@ -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}`
Expand Down

0 comments on commit 847b1eb

Please sign in to comment.