More test on Identity and TxProposal

This commit is contained in:
Matias Pando 2015-02-05 18:02:35 -03:00
commit 86ec16d9d1
3 changed files with 324 additions and 2 deletions

View file

@ -379,8 +379,14 @@ Identity.prototype.setBackupNeeded = function(backupNeeded) {
self.backupNeeded = !!backupNeeded;
self.verifyChecksum(function(err, match) {
if (err) return cb(err);
if (!match) return cb('The profile is out of sync. Please re-login to get the latest changes.');
if (err) {
log.error(err);
return;
}
if (!match) {
log.error('The profile is out of sync. Please re-login to get the latest changes.');
return;
}
self.store({
noWallets: true