Skip to content

Commit

Permalink
Trying to fix Could not find Ledger input.
Browse files Browse the repository at this point in the history
  • Loading branch information
ARyaskov committed Jun 1, 2019
1 parent 348295d commit c73613a
Showing 1 changed file with 5 additions and 2 deletions.
7 changes: 5 additions & 2 deletions lib/bcoin.js
Original file line number Diff line number Diff line change
Expand Up @@ -240,15 +240,18 @@ 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 c73613a

Please sign in to comment.