Feat: user compliance saving to DB

This commit is contained in:
Cesar 2020-12-16 19:12:47 +00:00 committed by Josh Harvey
parent 204e421b3d
commit 2a9e8dadba
7 changed files with 79 additions and 29 deletions

View file

@ -31,9 +31,9 @@ function post (machineTx, pi) {
if (_.some(it => it.created_by_operator === true)(blacklistItems)) {
blacklisted = true
notifier.addBlacklistNotification(r.tx, false)
notifier.blacklistNotify(r.tx, false)
} else if (_.some(it => it.created_by_operator === false)(blacklistItems) && rejectAddressReuseActive) {
notifier.addBlacklistNotification(r.tx, true)
notifier.blacklistNotify(r.tx, true)
addressReuse = true
}
return postProcess(r, pi, blacklisted, addressReuse)