feat: migrate old tx addresses to blacklist table

feat: add new addresses to blacklist list
This commit is contained in:
Sérgio Salgado 2021-06-20 21:30:59 +01:00 committed by Josh Harvey
parent 60415e23f3
commit f682a77eb5
2 changed files with 16 additions and 5 deletions

View file

@ -134,11 +134,8 @@ function postProcess (r, pi, isBlacklisted, addressReuse) {
})
.then(sendRec => {
settingsLoader.loadLatest().then(it => {
const rejectAddressReuseActive = configManager.getCompliance(it.config).rejectAddressReuse
if (rejectAddressReuseActive) {
blacklist.addToUsedAddresses(r.tx.toAddress, r.tx.cryptoCode)
.catch(err => logger.error('Failure adding to addressReuse', err))
}
blacklist.addToUsedAddresses(r.tx.toAddress, r.tx.cryptoCode)
.catch(err => logger.error('Failure adding to addressReuse', err))
})
pi.notifyOperator(r.tx, sendRec)