aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--packages/subproviders/src/subproviders/rpc_subprovider.ts4
1 files changed, 3 insertions, 1 deletions
diff --git a/packages/subproviders/src/subproviders/rpc_subprovider.ts b/packages/subproviders/src/subproviders/rpc_subprovider.ts
index 87c522271..0fb99f87a 100644
--- a/packages/subproviders/src/subproviders/rpc_subprovider.ts
+++ b/packages/subproviders/src/subproviders/rpc_subprovider.ts
@@ -34,8 +34,10 @@ export class RPCSubprovider extends Subprovider {
Accept: 'application/json',
'Content-Type': 'application/json',
});
- const timeoutMs = 1000;
+ // Since Ethereum nodes have a proclivity for accepting requests and never
+ // returning a response, we set this quite low (10 seconds).
+ const timeoutMs = 10000;
let response;
try {
response = await fetchAsync(