Skip to content

Commit befb5de

Browse files
authored
Merge pull request #1865 from MetaMask/blacklist-moar
blacklist - update phishing on boot and speed up polling to 4 min
2 parents a3cd2a0 + 1be8053 commit befb5de

File tree

2 files changed

+4
-3
lines changed

2 files changed

+4
-3
lines changed

app/scripts/controllers/blacklist.js

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -4,8 +4,8 @@ const PhishingDetector = require('eth-phishing-detect/src/detector')
44

55
// compute phishing lists
66
const PHISHING_DETECTION_CONFIG = require('eth-phishing-detect/src/config.json')
7-
// every ten minutes
8-
const POLLING_INTERVAL = 10 * 60 * 1000
7+
// every four minutes
8+
const POLLING_INTERVAL = 4 * 60 * 1000
99

1010
class BlacklistController {
1111

@@ -41,6 +41,7 @@ class BlacklistController {
4141

4242
scheduleUpdates () {
4343
if (this._phishingUpdateIntervalRef) return
44+
this.updatePhishingList()
4445
this._phishingUpdateIntervalRef = setInterval(() => {
4546
this.updatePhishingList()
4647
}, POLLING_INTERVAL)

package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -68,7 +68,7 @@
6868
"eth-bin-to-ops": "^1.0.1",
6969
"eth-contract-metadata": "^1.1.4",
7070
"eth-hd-keyring": "^1.1.1",
71-
"eth-phishing-detect": "^1.1.0",
71+
"eth-phishing-detect": "^1.1.3",
7272
"eth-query": "^2.1.2",
7373
"eth-sig-util": "^1.2.2",
7474
"eth-simple-keyring": "^1.1.1",

0 commit comments

Comments
 (0)