Feat: compliance blacklisted addresses notifications
This commit is contained in:
parent
3b3bdf839b
commit
204e421b3d
9 changed files with 55 additions and 21 deletions
|
|
@ -8,6 +8,7 @@ const plugins = require('../plugins')
|
|||
const logger = require('../logger')
|
||||
const settingsLoader = require('../new-settings-loader')
|
||||
const configManager = require('../new-config-manager')
|
||||
const notifier = require("../notifier/index")
|
||||
|
||||
const cashInAtomic = require('./cash-in-atomic')
|
||||
const cashInLow = require('./cash-in-low')
|
||||
|
|
@ -30,10 +31,11 @@ function post (machineTx, pi) {
|
|||
|
||||
if (_.some(it => it.created_by_operator === true)(blacklistItems)) {
|
||||
blacklisted = true
|
||||
notifier.addBlacklistNotification(r.tx, false)
|
||||
} else if (_.some(it => it.created_by_operator === false)(blacklistItems) && rejectAddressReuseActive) {
|
||||
notifier.addBlacklistNotification(r.tx, true)
|
||||
addressReuse = true
|
||||
}
|
||||
|
||||
return postProcess(r, pi, blacklisted, addressReuse)
|
||||
})
|
||||
.then(changes => cashInLow.update(db, updatedTx, changes))
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue