feat: migrate old tx addresses to blacklist table
feat: add new addresses to blacklist list
This commit is contained in:
parent
60415e23f3
commit
f682a77eb5
2 changed files with 16 additions and 5 deletions
|
|
@ -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)
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue