Merge pull request #400 from isocolsky/fix/derivation-strategy

tx.derivationStragegy = wallet.derivationSTrategy
This commit is contained in:
Matias Alejo Garcia 2015-11-11 12:15:13 -03:00
commit d8f2bf7684
1 changed files with 1 additions and 0 deletions

View File

@ -159,6 +159,7 @@ Storage.prototype._completeTxData = function(walletId, txs, cb) {
this.fetchWallet(walletId, function(err, wallet) {
if (err) return cb(err);
_.each(txList, function(tx) {
tx.derivationStrategy = wallet.derivationStrategy || 'BIP45';
tx.creatorName = wallet.getCopayer(tx.creatorId).name;
_.each(tx.actions, function(action) {
action.copayerName = wallet.getCopayer(action.copayerId).name;