More test on Identity and TxProposal
This commit is contained in:
parent
a530c27b2e
commit
86ec16d9d1
3 changed files with 324 additions and 2 deletions
|
|
@ -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
|
||||
|
|
|
|||
|
|
@ -75,6 +75,8 @@ TxProposal.prototype._checkPayPro = function() {
|
|||
if (!this.merchant.total || !this.merchant.outs[0].amountSatStr || !this.merchant.outs[0].address)
|
||||
throw new Error('PayPro: Missing amount');
|
||||
|
||||
console.log('outs ', this.builder.vanilla.outs);
|
||||
console.log('size ', _.size(outs));
|
||||
var outs = JSON.parse(this.builder.vanilla.outs);
|
||||
if (_.size(outs) != 1)
|
||||
throw new Error('PayPro: Wrong outs in Tx');
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue