Skip to content

Commit

Permalink
Undo comments
Browse files Browse the repository at this point in the history
  • Loading branch information
ukstv committed Jun 3, 2019
1 parent 6b3ec58 commit 3fdb4b9
Showing 1 changed file with 2 additions and 5 deletions.
7 changes: 2 additions & 5 deletions lib/bcoin.js
Original file line number Diff line number Diff line change
Expand Up @@ -240,18 +240,15 @@ class LedgerBcoin {
await sigstate.collectTrustedInputs();
await sigstate.cacheWitnessInputs();

let index = 0
for (const li of ledgerInputs) {
// const index = sigstate.getIndex(li);
const index = sigstate.getIndex(li);

// assert(index >= 0, 'Could not find ledger input index.');
assert(index >= 0, 'Could not find ledger input index.');

const sig = await sigstate.getSignature(li);

assert(this.applySignature(tx, index, li, sig),
'Adding signature failed.');

index++
}

sigstate.destroy();
Expand Down

0 comments on commit 3fdb4b9

Please sign in to comment.