fix: verify if wallet scoring is enabled

This commit is contained in:
josepfo 2022-11-04 15:56:15 +00:00
parent 69a4d52753
commit 727544344b
6 changed files with 79 additions and 37 deletions

View file

@ -47,9 +47,19 @@ function getInputAddresses (settings, cryptoCode, txHashes) {
})
}
function isWalletScoringEnabled (settings, cryptoCode) {
return Promise.resolve()
.then(() => {
const { plugin, account } = loadWalletScoring(settings)
return plugin.isWalletScoringEnabled(account, cryptoCode)
})
}
module.exports = {
rateWallet,
isValidWalletScore,
getTransactionHash,
getInputAddresses
getInputAddresses,
isWalletScoringEnabled
}