inpage-provider - disable polling after first block

feature/default_network_editable
kumavis 8 years ago
parent 1ffc6ea0b3
commit e6b278569e
  1. 3
      app/scripts/lib/inpage-provider.js

@ -44,8 +44,9 @@ function MetamaskInpageProvider (connectionStream) {
(err) => logStreamDisconnectWarning('MetaMask RpcProvider', err) (err) => logStreamDisconnectWarning('MetaMask RpcProvider', err)
) )
// start polling // start and stop polling to unblock first block lock
engine.start() engine.start()
engine.once('latest', () => engine.stop())
self.idMap = {} self.idMap = {}
// handle sendAsync requests via asyncProvider // handle sendAsync requests via asyncProvider

Loading…
Cancel
Save