update idempotentcy
This commit is contained in:
parent
9c57b1de87
commit
06ff037189
3 changed files with 65 additions and 115 deletions
|
|
@ -128,10 +128,6 @@ function loadPlugin (name, config) {
|
|||
return plugin
|
||||
}
|
||||
|
||||
function pp (o) {
|
||||
console.log(require('util').inspect(o, {depth: null}))
|
||||
}
|
||||
|
||||
function loadOrConfigPlugin (pluginHandle, pluginType, cryptoCode, config, accounts, options,
|
||||
onChangeCallback) {
|
||||
const currentName = config.cryptoServices[pluginType]
|
||||
|
|
@ -689,11 +685,21 @@ function executeTrades (cryptoCode) {
|
|||
* ID Verifier functions
|
||||
*/
|
||||
exports.verifyUser = function verifyUser (data, cb) {
|
||||
idVerifierPlugin.verifyUser(data, cb)
|
||||
return new Promise((resolve, reject) => {
|
||||
idVerifierPlugin.verifyUser(data, (err, res) => {
|
||||
if (err) return reject(err)
|
||||
return resolve(res)
|
||||
})
|
||||
})
|
||||
}
|
||||
|
||||
exports.verifyTx = function verifyTx (data, cb) {
|
||||
idVerifierPlugin.verifyTransaction(data, cb)
|
||||
return new Promise((resolve, reject) => {
|
||||
idVerifierPlugin.verifyTransaction(data, (err, res) => {
|
||||
if (err) return reject(err)
|
||||
return resolve(res)
|
||||
})
|
||||
})
|
||||
}
|
||||
|
||||
function sendMessage (rec) {
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue