blacklist - update phishing on boot and speed up polling to 4 min

feature/default_network_editable
kumavis 7 years ago
parent a3cd2a091c
commit 1be8053cca
  1. 5
      app/scripts/controllers/blacklist.js
  2. 2
      package.json

@ -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)

@ -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",

Loading…
Cancel
Save