From 3df035c5d92c0fbb6c1f60fd4130bceebc8d3f48 Mon Sep 17 00:00:00 2001 From: Gregg Zigler Date: Tue, 7 Jul 2015 14:25:34 -0700 Subject: [PATCH] proposals with explicit type = simple need legacy header --- lib/server.js | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/lib/server.js b/lib/server.js index b2e7fb9..95d2a4d 100644 --- a/lib/server.js +++ b/lib/server.js @@ -903,9 +903,10 @@ WalletService.prototype.createTx = function(opts, cb) { var copayer = wallet.getCopayer(self.copayerId); var hash; - if (!opts.type) { + if (!opts.type || opts.type == Model.TxProposal.Types.SIMPLE) { hash = WalletUtils.getProposalHash(opts.toAddress, opts.amount, opts.message, opts.payProUrl); } else { + // should match bwc api _computeProposalSignature var header = { outputs: _.map(opts.outputs, function(output) { return _.pick(output, ['toAddress', 'amount', 'message']);