aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorFabio Berger <me@fabioberger.com>2018-07-13 05:17:35 +0800
committerFabio Berger <me@fabioberger.com>2018-07-13 05:17:35 +0800
commitc2a1317c3813b13353eb84e4255284fe99ff8e6c (patch)
tree28222d3c2e35ab47032ef145c049ab2c891ea24b
parent49f1a6933cc22d1e703d631d5b861b8601ca2231 (diff)
downloaddexon-sol-tools-c2a1317c3813b13353eb84e4255284fe99ff8e6c.tar
dexon-sol-tools-c2a1317c3813b13353eb84e4255284fe99ff8e6c.tar.gz
dexon-sol-tools-c2a1317c3813b13353eb84e4255284fe99ff8e6c.tar.bz2
dexon-sol-tools-c2a1317c3813b13353eb84e4255284fe99ff8e6c.tar.lz
dexon-sol-tools-c2a1317c3813b13353eb84e4255284fe99ff8e6c.tar.xz
dexon-sol-tools-c2a1317c3813b13353eb84e4255284fe99ff8e6c.tar.zst
dexon-sol-tools-c2a1317c3813b13353eb84e4255284fe99ff8e6c.zip
Adjust timeout
-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(