aboutsummaryrefslogtreecommitdiffstats
path: root/app
diff options
context:
space:
mode:
authorkumavis <aaron@kumavis.me>2018-06-08 03:26:37 +0800
committerkumavis <aaron@kumavis.me>2018-06-08 03:26:37 +0800
commit3ce83570ee336524e1ab0da50a9f47744cddb193 (patch)
tree6c9281c8484c9381e6f89b2c40d492080dd6d866 /app
parent66b703b1a4ba25ddaf8278f020967b4d20351027 (diff)
downloadtangerine-wallet-browser-3ce83570ee336524e1ab0da50a9f47744cddb193.tar
tangerine-wallet-browser-3ce83570ee336524e1ab0da50a9f47744cddb193.tar.gz
tangerine-wallet-browser-3ce83570ee336524e1ab0da50a9f47744cddb193.tar.bz2
tangerine-wallet-browser-3ce83570ee336524e1ab0da50a9f47744cddb193.tar.lz
tangerine-wallet-browser-3ce83570ee336524e1ab0da50a9f47744cddb193.tar.xz
tangerine-wallet-browser-3ce83570ee336524e1ab0da50a9f47744cddb193.tar.zst
tangerine-wallet-browser-3ce83570ee336524e1ab0da50a9f47744cddb193.zip
network - provider - infura - use block-reemit middleware
Diffstat (limited to 'app')
-rw-r--r--app/scripts/controllers/network/createInfuraClient.js4
1 files changed, 2 insertions, 2 deletions
diff --git a/app/scripts/controllers/network/createInfuraClient.js b/app/scripts/controllers/network/createInfuraClient.js
index adbf4c001..663a2595a 100644
--- a/app/scripts/controllers/network/createInfuraClient.js
+++ b/app/scripts/controllers/network/createInfuraClient.js
@@ -1,6 +1,6 @@
const mergeMiddleware = require('json-rpc-engine/src/mergeMiddleware')
const createAsyncMiddleware = require('json-rpc-engine/src/createAsyncMiddleware')
-const createBlockRefMiddleware = require('eth-json-rpc-middleware/block-ref')
+const createBlockReEmitMiddleware = require('eth-json-rpc-middleware/block-reemit')
const createBlockCacheMiddleware = require('eth-json-rpc-middleware/block-cache')
const createInflightMiddleware = require('eth-json-rpc-middleware/inflight-cache')
const providerFromMiddleware = require('eth-json-rpc-middleware/providerFromMiddleware')
@@ -15,7 +15,7 @@ function createInfuraClient ({ network }) {
const blockTracker = new BlockTracker({ provider: blockProvider })
const networkMiddleware = mergeMiddleware([
- createBlockRefMiddleware({ blockTracker }),
+ createBlockReEmitMiddleware({ blockTracker, provider: blockProvider }),
createBlockCacheMiddleware({ blockTracker }),
createInflightMiddleware(),
createBlockTrackerInspectorMiddleware({ blockTracker }),