diff options
author | Dan Finlay <542863+danfinlay@users.noreply.github.com> | 2018-01-16 06:35:59 +0800 |
---|---|---|
committer | GitHub <noreply@github.com> | 2018-01-16 06:35:59 +0800 |
commit | 582634d9fa6a31b695ded5125b26c8a4f06ed21f (patch) | |
tree | 534f6d85f379b97ea158194f2e432645c6ad46ea /app/scripts/metamask-controller.js | |
parent | 1b3ab710637cab2959c2da25de895a3c28f348d8 (diff) | |
parent | 7cb66ce4cba446f8149c4a8872dbdfbc53f72f7c (diff) | |
download | tangerine-wallet-browser-582634d9fa6a31b695ded5125b26c8a4f06ed21f.tar tangerine-wallet-browser-582634d9fa6a31b695ded5125b26c8a4f06ed21f.tar.gz tangerine-wallet-browser-582634d9fa6a31b695ded5125b26c8a4f06ed21f.tar.bz2 tangerine-wallet-browser-582634d9fa6a31b695ded5125b26c8a4f06ed21f.tar.lz tangerine-wallet-browser-582634d9fa6a31b695ded5125b26c8a4f06ed21f.tar.xz tangerine-wallet-browser-582634d9fa6a31b695ded5125b26c8a4f06ed21f.tar.zst tangerine-wallet-browser-582634d9fa6a31b695ded5125b26c8a4f06ed21f.zip |
Merge pull request #2936 from MetaMask/i2925-BetterGasEstimation
Improve gas price estimation by backfilling recent-blocks
Diffstat (limited to 'app/scripts/metamask-controller.js')
-rw-r--r-- | app/scripts/metamask-controller.js | 5 |
1 files changed, 1 insertions, 4 deletions
diff --git a/app/scripts/metamask-controller.js b/app/scripts/metamask-controller.js index f62b5e5cd..000e17b9e 100644 --- a/app/scripts/metamask-controller.js +++ b/app/scripts/metamask-controller.js @@ -5,7 +5,6 @@ const Dnode = require('dnode') const ObservableStore = require('obs-store') const asStream = require('obs-store/lib/asStream') const AccountTracker = require('./lib/account-tracker') -const EthQuery = require('eth-query') const RpcEngine = require('json-rpc-engine') const debounce = require('debounce') const createEngineStream = require('json-rpc-middleware-stream/engineStream') @@ -96,10 +95,9 @@ module.exports = class MetamaskController extends EventEmitter { this.recentBlocksController = new RecentBlocksController({ blockTracker: this.blockTracker, + provider: this.provider, }) - // eth data query tools - this.ethQuery = new EthQuery(this.provider) // account tracker watches balances, nonces, and any code at their address. this.accountTracker = new AccountTracker({ provider: this.provider, @@ -140,7 +138,6 @@ module.exports = class MetamaskController extends EventEmitter { signTransaction: this.keyringController.signTransaction.bind(this.keyringController), provider: this.provider, blockTracker: this.blockTracker, - ethQuery: this.ethQuery, getGasPrice: this.getGasPrice.bind(this), }) this.txController.on('newUnapprovedTx', opts.showUnapprovedTx.bind(opts)) |