From 1be8053ccab7680ef5d7f935d2658544dbe55128 Mon Sep 17 00:00:00 2001 From: kumavis Date: Fri, 4 Aug 2017 13:51:48 -0700 Subject: [PATCH 1/3] blacklist - update phishing on boot and speed up polling to 4 min --- app/scripts/controllers/blacklist.js | 5 +++-- 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", From c62dad7248df2708de0a16de76c7df7f227e0ad1 Mon Sep 17 00:00:00 2001 From: kumavis Date: Fri, 4 Aug 2017 14:11:40 -0700 Subject: [PATCH 2/3] blacklist - bump phishing detector --- package.json | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/package.json b/package.json index a8429cc08..367754a00 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.3", + "eth-phishing-detect": "^1.1.4", "eth-query": "^2.1.2", "eth-sig-util": "^1.2.2", "eth-simple-keyring": "^1.1.1", From c82908e843b5d4760c84e0628f6a7d5caeae467a Mon Sep 17 00:00:00 2001 From: kumavis Date: Fri, 4 Aug 2017 14:16:19 -0700 Subject: [PATCH 3/3] v3.9.5 --- CHANGELOG.md | 4 ++++ app/manifest.json | 2 +- 2 files changed, 5 insertions(+), 1 deletion(-) diff --git a/CHANGELOG.md b/CHANGELOG.md index 4c5ca37a1..b1921c17a 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -2,6 +2,10 @@ ## Current Master +## 3.9.5 2017-8-04 + +- Improved phishing detection configuration update rate + ## 3.9.4 2017-8-03 - Fixed bug that prevented transactions from being rejected. diff --git a/app/manifest.json b/app/manifest.json index d5e1937fa..3b9194eb9 100644 --- a/app/manifest.json +++ b/app/manifest.json @@ -1,7 +1,7 @@ { "name": "MetaMask", "short_name": "Metamask", - "version": "3.9.4", + "version": "3.9.5", "manifest_version": 2, "author": "https://metamask.io", "description": "Ethereum Browser Extension",