aboutsummaryrefslogtreecommitdiffstats
path: root/app
diff options
context:
space:
mode:
authorkumavis <aaron@kumavis.me>2017-08-05 04:51:48 +0800
committerkumavis <aaron@kumavis.me>2017-08-05 04:51:48 +0800
commit1be8053ccab7680ef5d7f935d2658544dbe55128 (patch)
tree37bdc572b9144fa1d03c7e813dfc795c91b2eb97 /app
parenta3cd2a091c6d7132a85a4464d4656c050a02dfc1 (diff)
downloadtangerine-wallet-browser-1be8053ccab7680ef5d7f935d2658544dbe55128.tar
tangerine-wallet-browser-1be8053ccab7680ef5d7f935d2658544dbe55128.tar.gz
tangerine-wallet-browser-1be8053ccab7680ef5d7f935d2658544dbe55128.tar.bz2
tangerine-wallet-browser-1be8053ccab7680ef5d7f935d2658544dbe55128.tar.lz
tangerine-wallet-browser-1be8053ccab7680ef5d7f935d2658544dbe55128.tar.xz
tangerine-wallet-browser-1be8053ccab7680ef5d7f935d2658544dbe55128.tar.zst
tangerine-wallet-browser-1be8053ccab7680ef5d7f935d2658544dbe55128.zip
blacklist - update phishing on boot and speed up polling to 4 min
Diffstat (limited to 'app')
-rw-r--r--app/scripts/controllers/blacklist.js5
1 files changed, 3 insertions, 2 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)