fix: authorization header and threshold logic
This commit is contained in:
parent
904c383431
commit
57aaa7fb11
3 changed files with 13 additions and 10 deletions
|
|
@ -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,
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue