paypro: potentially use verbatim scripts after setting outputs.

This commit is contained in:
Christopher Jeffrey 2014-08-05 18:12:26 -07:00 committed by Manuel Araoz
commit d51c1c552f
2 changed files with 30 additions and 0 deletions

View file

@ -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);