fix crypto defaults
This commit is contained in:
parent
b6fce47069
commit
6759bec826
3 changed files with 27 additions and 14 deletions
|
|
@ -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'
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue