Skip to content

Commit

Permalink
commiting for upstream
Browse files Browse the repository at this point in the history
  • Loading branch information
amitx13 committed Apr 17, 2024
1 parent 1a1fd5d commit f2fa23b
Show file tree
Hide file tree
Showing 2 changed files with 829 additions and 78 deletions.
6 changes: 2 additions & 4 deletions index.js
Original file line number Diff line number Diff line change
Expand Up @@ -120,7 +120,7 @@ function main() {
break;
}
}
/* if (maxLength > 7) {
/* if (maxLength > 2) {
verify = false;
break;
} */
Expand All @@ -143,13 +143,11 @@ function main() {
else isVerify = false; break;
}
if (prevTrnx.prevout.scriptpubkey_type === "v0_p2wpkh") {

let res = validate_p2wpkh(prevTrnx, msgHash, transactionData, index);
if (res) { isVerify = true; continue; }
else isVerify = false; break;
}
if (prevTrnx.prevout.scriptpubkey_type === "v0_p2wsh") {

let res = validate_p2wsh(prevTrnx, msgHash, transactionData, index);
if (res) { isVerify = true; continue; }
else isVerify = false; break;
Expand All @@ -172,7 +170,7 @@ function main() {
transactions.sort((a, b) => b.fee - a.fee);

// Select the top 5300 transactions
transactions = transactions.slice(0, 90);
//transactions = transactions.slice(0, 90);

let transactionIDs = []
transactions.map(tx => {
Expand Down
Loading

0 comments on commit f2fa23b

Please sign in to comment.