1
0
mirror of https://github.com/kremalicious/metamask-extension.git synced 2024-12-23 09:52:26 +01:00

Merge pull request #2718 from MetaMask/ReducePollingInterval

Reduce polling interval
This commit is contained in:
kumavis 2017-12-09 20:24:33 -05:00 committed by GitHub
commit c12886a3d5
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
4 changed files with 11 additions and 3 deletions

View File

@ -2,6 +2,10 @@
## Current Master
## 3.13.2 2017-12-9
- Reduce new block polling interval to 8000 ms, to ease server load.
## 3.13.1 2017-12-7
- Allow Dapps to specify a transaction nonce, allowing dapps to propose resubmit and force-cancel transactions.

View File

@ -1,7 +1,7 @@
{
"name": "MetaMask",
"short_name": "Metamask",
"version": "3.13.1",
"version": "3.13.2",
"manifest_version": 2,
"author": "https://metamask.io",
"description": "Ethereum Browser Extension",

View File

@ -106,7 +106,11 @@ module.exports = class NetworkController extends EventEmitter {
}
_configureStandardProvider (_providerParams) {
const providerParams = extend(this._baseProviderParams, _providerParams)
const providerParams = extend(this._baseProviderParams, _providerParams, {
engineParams: {
pollingInterval: 8000,
},
})
const provider = createMetamaskProvider(providerParams)
this._setProvider(provider)
}

View File

@ -152,7 +152,7 @@
"valid-url": "^1.0.9",
"vreme": "^3.0.2",
"web3": "^0.20.1",
"web3-provider-engine": "^13.3.2",
"web3-provider-engine": "^13.3.4",
"web3-stream-provider": "^3.0.1",
"xtend": "^4.0.1"
},