fix cash-in-tx db mapping

This commit is contained in:
Josh Harvey 2017-04-26 03:11:09 +03:00
parent 356e7322c8
commit dda91cacfc
2 changed files with 13 additions and 1 deletions

View file

@ -86,6 +86,11 @@ function ensureRatchet (oldField, newField, fieldKey) {
return true
}
const tt = r => Object.prototype.toString.call(r)
console.log('DEBUG100: %j', [tt(oldField), tt(newField)])
if (oldField.toString() === newField.toString()) return true
logger.error('This field [%s] should never change', fieldKey)
logger.error('oldField: %j', oldField)
logger.error('newField: %j', newField)