paypro: use server outputs for creating txs again.
This commit is contained in:
parent
052e2522be
commit
f20836a24c
2 changed files with 29 additions and 29 deletions
|
|
@ -271,15 +271,15 @@ 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;
|
||||
// });
|
||||
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) {
|
||||
|
|
@ -507,15 +507,15 @@ 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;
|
||||
// });
|
||||
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) {
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue