fix: authorization header and threshold logic

This commit is contained in:
Sérgio Salgado 2022-01-05 18:40:38 +00:00
parent 904c383431
commit 57aaa7fb11
3 changed files with 13 additions and 10 deletions

View file

@ -41,6 +41,8 @@ function post (machineTx, pi) {
walletScore = fetchedWalletScore
console.log(fetchedWalletScore)
if (_.some(it => it.address === updatedTx.toAddress)(blacklistItems)) {
blacklisted = true
notifier.notifyIfActive('compliance', 'blacklistNotify', r.tx, false)
@ -109,6 +111,7 @@ function postProcess (r, pi, isBlacklisted, addressReuse, walletScore) {
}
if (!_.isNil(walletScore) && !walletScore.isValid) {
console.log('aaaaaaaa')
return Promise.resolve({
walletScore: walletScore.score,
operatorCompleted: true,