lamassu-server/lib/plugins/zero-conf/mock-zero-conf/mock-zero-conf.js
2018-03-10 18:59:40 +00:00

11 lines
296 B
JavaScript

module.exports = {authorize}
function authorize (account, toAddress, cryptoAtoms, cryptoCode) {
return Promise.resolve()
.then(() => {
if (cryptoCode !== 'BTC') throw new Error('Unsupported crypto: ' + cryptoCode)
const isAuthorized = false
return isAuthorized
})
}