diff options
author | kumavis <aaron@kumavis.me> | 2017-05-25 02:34:26 +0800 |
---|---|---|
committer | kumavis <aaron@kumavis.me> | 2017-05-25 02:34:26 +0800 |
commit | e6b278569ea072aa88416e769d4803a73b77194c (patch) | |
tree | 5bf3f730afed3ec8a26a0f1d611329ff006568d4 /app/scripts/lib | |
parent | 1ffc6ea0b3a44efb579d1b9df81d52099fcc06ae (diff) | |
download | tangerine-wallet-browser-e6b278569ea072aa88416e769d4803a73b77194c.tar.gz tangerine-wallet-browser-e6b278569ea072aa88416e769d4803a73b77194c.tar.zst tangerine-wallet-browser-e6b278569ea072aa88416e769d4803a73b77194c.zip |
inpage-provider - disable polling after first block
Diffstat (limited to 'app/scripts/lib')
-rw-r--r-- | app/scripts/lib/inpage-provider.js | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/app/scripts/lib/inpage-provider.js b/app/scripts/lib/inpage-provider.js index e54f547bd..39196e240 100644 --- a/app/scripts/lib/inpage-provider.js +++ b/app/scripts/lib/inpage-provider.js @@ -44,8 +44,9 @@ function MetamaskInpageProvider (connectionStream) { (err) => logStreamDisconnectWarning('MetaMask RpcProvider', err) ) - // start polling + // start and stop polling to unblock first block lock engine.start() + engine.once('latest', () => engine.stop()) self.idMap = {} // handle sendAsync requests via asyncProvider |