fix crypto defaults

This commit is contained in:
Josh Harvey 2017-05-26 15:10:14 +01:00
parent b6fce47069
commit 6759bec826
3 changed files with 27 additions and 14 deletions

View file

@ -74,7 +74,6 @@ function getWalletStatus (settings, tx) {
}
function authorizeZeroConf (settings, tx, machineId) {
console.log('DEBUG330: %j', machineId)
const cryptoConfig = configManager.cryptoScoped(tx.cryptoCode, settings.config)
const machineConfig = configManager.machineScoped(machineId, settings.config)
const plugin = cryptoConfig.zeroConf
@ -108,7 +107,6 @@ function getStatus (settings, tx, machineId) {
return Promise.all(promises)
.then(([statusRec, isAuthorized, publishAge]) => {
console.log('DEBUG301: %j', [statusRec, isAuthorized])
if (statusRec.status === 'authorized') {
const unauthorizedStatus = publishAge < ZERO_CONF_EXPIRATION
? 'published'