Adjust timeout

This commit is contained in:
Fabio Berger
2018-07-12 23:17:35 +02:00
parent 49f1a6933c
commit c2a1317c38

View File

@@ -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(