diff options
author | Frankie <frankie.diamond@gmail.com> | 2017-08-05 05:04:57 +0800 |
---|---|---|
committer | GitHub <noreply@github.com> | 2017-08-05 05:04:57 +0800 |
commit | befb5de325cc325f26bda9bdaba942dec808a952 (patch) | |
tree | 37bdc572b9144fa1d03c7e813dfc795c91b2eb97 | |
parent | a3cd2a091c6d7132a85a4464d4656c050a02dfc1 (diff) | |
parent | 1be8053ccab7680ef5d7f935d2658544dbe55128 (diff) | |
download | tangerine-wallet-browser-befb5de325cc325f26bda9bdaba942dec808a952.tar tangerine-wallet-browser-befb5de325cc325f26bda9bdaba942dec808a952.tar.gz tangerine-wallet-browser-befb5de325cc325f26bda9bdaba942dec808a952.tar.bz2 tangerine-wallet-browser-befb5de325cc325f26bda9bdaba942dec808a952.tar.lz tangerine-wallet-browser-befb5de325cc325f26bda9bdaba942dec808a952.tar.xz tangerine-wallet-browser-befb5de325cc325f26bda9bdaba942dec808a952.tar.zst tangerine-wallet-browser-befb5de325cc325f26bda9bdaba942dec808a952.zip |
Merge pull request #1865 from MetaMask/blacklist-moar
blacklist - update phishing on boot and speed up polling to 4 min
-rw-r--r-- | app/scripts/controllers/blacklist.js | 5 | ||||
-rw-r--r-- | package.json | 2 |
2 files changed, 4 insertions, 3 deletions
diff --git a/app/scripts/controllers/blacklist.js b/app/scripts/controllers/blacklist.js index 7e01fa386..dd671943f 100644 --- a/app/scripts/controllers/blacklist.js +++ b/app/scripts/controllers/blacklist.js @@ -4,8 +4,8 @@ const PhishingDetector = require('eth-phishing-detect/src/detector') // compute phishing lists const PHISHING_DETECTION_CONFIG = require('eth-phishing-detect/src/config.json') -// every ten minutes -const POLLING_INTERVAL = 10 * 60 * 1000 +// every four minutes +const POLLING_INTERVAL = 4 * 60 * 1000 class BlacklistController { @@ -41,6 +41,7 @@ class BlacklistController { scheduleUpdates () { if (this._phishingUpdateIntervalRef) return + this.updatePhishingList() this._phishingUpdateIntervalRef = setInterval(() => { this.updatePhishingList() }, POLLING_INTERVAL) diff --git a/package.json b/package.json index 4f702e048..a8429cc08 100644 --- a/package.json +++ b/package.json @@ -68,7 +68,7 @@ "eth-bin-to-ops": "^1.0.1", "eth-contract-metadata": "^1.1.4", "eth-hd-keyring": "^1.1.1", - "eth-phishing-detect": "^1.1.0", + "eth-phishing-detect": "^1.1.3", "eth-query": "^2.1.2", "eth-sig-util": "^1.2.2", "eth-simple-keyring": "^1.1.1", |