From b1a2762433c1f14076668c535746cfff26a34990 Mon Sep 17 00:00:00 2001 From: Nam Chu Hoai Date: Mon, 3 Oct 2022 11:51:30 -0400 Subject: [PATCH] Make it a fallback instead of a quorum (#1119) * Make it a fallback instead of a quorum * Retry again * Update typescript/infra/src/config/chain.ts --- typescript/infra/src/config/chain.ts | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/typescript/infra/src/config/chain.ts b/typescript/infra/src/config/chain.ts index ec2df7bba..8ec8eddb9 100644 --- a/typescript/infra/src/config/chain.ts +++ b/typescript/infra/src/config/chain.ts @@ -41,7 +41,8 @@ export async function fetchProvider( const rpc = await getSecretRpcEndpoint(environment, chainName, quorum); if (quorum) { return new ethers.providers.FallbackProvider( - (rpc as string[]).map((url) => providerBuilder(url, chainName, false)), // disable retry for quorum + (rpc as string[]).map((url) => providerBuilder(url, chainName)), + 1, // a single provider is "quorum", but failure will cause failover to the next provider ); } else { return providerBuilder(rpc, chainName);