feat: add ciphertrace base implementation

This commit is contained in:
Sérgio Salgado 2021-12-16 20:04:43 +00:00
parent 201fec33e4
commit 904c383431
20 changed files with 258 additions and 39 deletions

View file

@ -828,9 +828,12 @@ function plugins (settings, deviceId) {
.then(buildRates)
}
function rateWallet (address) {
return walletScoring.rateWallet(settings, address)
.then(res => res.rating)
function rateWallet (cryptoCode, address) {
return walletScoring.rateWallet(settings, cryptoCode, address)
}
function isValidWalletScore (score) {
return walletScoring.isValidWalletScore(settings, score)
}
return {
@ -861,7 +864,8 @@ function plugins (settings, deviceId) {
notifyOperator,
fetchCurrentConfigVersion,
pruneMachinesHeartbeat,
rateWallet
rateWallet,
isValidWalletScore
}
}