Skip to content

Commit

Permalink
script-tester
Browse files Browse the repository at this point in the history
  • Loading branch information
David Case committed Sep 2, 2024
1 parent b48e759 commit b931342
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 8 deletions.
10 changes: 2 additions & 8 deletions scratch/ts/index.ts
Original file line number Diff line number Diff line change
Expand Up @@ -22,23 +22,17 @@ function main() {
sourceSatoshis: sourceOutput.satoshis!,
lockingScript: sourceOutput.lockingScript,
transactionVersion: tx.version,
otherInputs: [],
otherInputs: tx.inputs.splice(test.inputIdx, 1),
outputs: tx.outputs,
unlockingScript: input.unlockingScript!,
inputIndex: test.inputIdx,
inputSequence: input.sequence,
lockTime: tx.lockTime,
})
while(true) {
// try{
interp.step()
// } catch(e) {
// break
// }
interp.step()
console.log(interp.programCounter, Utils.toHex(interp.stack[interp.stack.length - 1]))
}
}

// main().catch(console.error);

main();
Empty file added scratch/ts/txs.ts
Empty file.

0 comments on commit b931342

Please sign in to comment.