Retry downloading OFAC lists (#236)

* Retry downloading OFAC lists

* Update ofac sources on lamassu-update
This commit is contained in:
Rafael Taranto 2018-12-30 10:47:09 -03:00 committed by Josh Harvey
parent b9f9c6facc
commit 7043a3c408
5 changed files with 48 additions and 1 deletions

View file

@ -103,6 +103,10 @@ function update () {
throw new Error('ofacDataDir must be defined in lamassu.json')
}
if (!options.ofacSources) {
logger.error('ofacSources must be defined in lamassu.json')
}
const OFAC_SOURCES_DIR = path.join(OFAC_DATA_DIR, 'sources')
const OFAC_ETAGS_FILE = path.join(OFAC_DATA_DIR, 'etags.json')