aboutsummaryrefslogtreecommitdiffstats
path: root/app/scripts/controllers/network/createJsonRpcClient.js
diff options
context:
space:
mode:
Diffstat (limited to 'app/scripts/controllers/network/createJsonRpcClient.js')
-rw-r--r--app/scripts/controllers/network/createJsonRpcClient.js5
1 files changed, 4 insertions, 1 deletions
diff --git a/app/scripts/controllers/network/createJsonRpcClient.js b/app/scripts/controllers/network/createJsonRpcClient.js
index a8cbf2aa..87884772 100644
--- a/app/scripts/controllers/network/createJsonRpcClient.js
+++ b/app/scripts/controllers/network/createJsonRpcClient.js
@@ -12,7 +12,10 @@ module.exports = createJsonRpcClient
function createJsonRpcClient ({ rpcUrl }) {
const fetchMiddleware = createFetchMiddleware({ rpcUrl })
const blockProvider = providerFromMiddleware(fetchMiddleware)
- const blockTracker = new BlockTracker({ provider: blockProvider })
+ const blockTracker = new BlockTracker({
+ provider: blockProvider,
+ pollingInterval: 1000,
+ })
const networkMiddleware = mergeMiddleware([
createBlockRefRewriteMiddleware({ blockTracker }),