Browse Source

Merge pull request #361 from matiu/feat/log-txproposal

Feat/log txproposal
activeAddress
Matias Alejo Garcia 9 years ago
parent
commit
738418fd59
  1. 1
      lib/blockchainexplorers/insight.js
  2. 5
      lib/model/txproposal.js

1
lib/blockchainexplorers/insight.js

@ -19,6 +19,7 @@ function Insight(opts) {
var _parseErr = function(err, res) { var _parseErr = function(err, res) {
if (err) { if (err) {
log.warn('Insight error: ', err);
return "Insight Error"; return "Insight Error";
} }
log.warn("Insight " + res.request.href + " Returned Status: " + res.statusCode); log.warn("Insight " + res.request.href + " Returned Status: " + res.statusCode);

5
lib/model/txproposal.js

@ -3,6 +3,10 @@
var _ = require('lodash'); var _ = require('lodash');
var $ = require('preconditions').singleton(); var $ = require('preconditions').singleton();
var Uuid = require('uuid'); var Uuid = require('uuid');
var log = require('npmlog');
log.debug = log.verbose;
log.disableColor();
var WalletUtils = require('bitcore-wallet-utils'); var WalletUtils = require('bitcore-wallet-utils');
var Bitcore = WalletUtils.Bitcore; var Bitcore = WalletUtils.Bitcore;
var Address = Bitcore.Address; var Address = Bitcore.Address;
@ -310,6 +314,7 @@ TxProposal.prototype.sign = function(copayerId, signatures, xpub) {
return true; return true;
} catch (e) { } catch (e) {
log.debug(e);
return false; return false;
} }
}; };

Loading…
Cancel
Save