From 1cfab3173c3d0519beffc054efe73f70b7d28501 Mon Sep 17 00:00:00 2001 From: Richard Moore Date: Tue, 25 Feb 2020 14:52:10 -0500 Subject: [PATCH] Reduced default Provider quorum for testnets. --- packages/networks/src.ts/index.ts | 10 +++------- 1 file changed, 3 insertions(+), 7 deletions(-) diff --git a/packages/networks/src.ts/index.ts b/packages/networks/src.ts/index.ts index 26e9565371..8443dea6d2 100644 --- a/packages/networks/src.ts/index.ts +++ b/packages/networks/src.ts/index.ts @@ -43,15 +43,11 @@ function ethDefaultProvider(network: string): (providers: any) => any { if (providerList.length === 0) { return null; } if (providers.FallbackProvider) { - let quorum = providerList.length / 2; + let quorum = 1; if (options.quorum != null) { quorum = options.quorum; - } else if (quorum > 2) { - if (network === "homestead") { - quorum = 2; - } else { - quorum = 1; - } + } else if (network === "homestead") { + quorum = 2; } return new providers.FallbackProvider(providerList, quorum); }