paypro: potentially use verbatim scripts after setting outputs.
This commit is contained in:
parent
ac32f56afa
commit
d51c1c552f
2 changed files with 30 additions and 0 deletions
|
|
@ -1165,6 +1165,16 @@ Wallet.prototype.createPaymentTxSync = function(options, merchantData, unspent)
|
|||
.setUnspent(unspent)
|
||||
.setOutputs(outs);
|
||||
|
||||
// merchantData.pr.pd.outputs.forEach(function(output, i) {
|
||||
// var script = {
|
||||
// offset: output.script.offset,
|
||||
// limit: output.script.limit,
|
||||
// buffer: new Buffer(output.script.buffer, 'hex')
|
||||
// };
|
||||
// var s = script.buffer.slice(script.offset, script.limit);
|
||||
// b.tx.outs[i].s = s;
|
||||
// });
|
||||
|
||||
var selectedUtxos = b.getSelectedUnspent();
|
||||
var inputChainPaths = selectedUtxos.map(function(utxo) {
|
||||
return pkr.pathForAddress(utxo.address);
|
||||
|
|
|
|||
|
|
@ -270,6 +270,16 @@ describe('PayPro (in Wallet) model', function() {
|
|||
.setUnspent(unspentTest)
|
||||
.setOutputs(outs);
|
||||
|
||||
// outputs.forEach(function(output, i) {
|
||||
// var script = {
|
||||
// offset: output.get('script').offset,
|
||||
// limit: output.get('script').limit,
|
||||
// buffer: output.get('script').buffer
|
||||
// };
|
||||
// var s = script.buffer.slice(script.offset, script.limit);
|
||||
// b.tx.outs[i].s = s;
|
||||
// });
|
||||
|
||||
var selectedUtxos = b.getSelectedUnspent();
|
||||
var inputChainPaths = selectedUtxos.map(function(utxo) {
|
||||
return pkr.pathForAddress(utxo.address);
|
||||
|
|
@ -496,6 +506,16 @@ describe('PayPro (in Wallet) model', function() {
|
|||
.setUnspent(unspentTest)
|
||||
.setOutputs(outs);
|
||||
|
||||
// outputs.forEach(function(output, i) {
|
||||
// var script = {
|
||||
// offset: output.get('script').offset,
|
||||
// limit: output.get('script').limit,
|
||||
// buffer: output.get('script').buffer
|
||||
// };
|
||||
// var s = script.buffer.slice(script.offset, script.limit);
|
||||
// b.tx.outs[i].s = s;
|
||||
// });
|
||||
|
||||
var selectedUtxos = b.getSelectedUnspent();
|
||||
var inputChainPaths = selectedUtxos.map(function(utxo) {
|
||||
return pkr.pathForAddress(utxo.address);
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue