Skip to content

Commit

Permalink
Mining only p2pkh and p2wpkh txns
Browse files Browse the repository at this point in the history
  • Loading branch information
ayushj05 committed Apr 14, 2024
1 parent 4948bcb commit 940880e
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/main.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -45,7 +45,7 @@ void mine() {
for (auto &txn : transactions) {
bool flag = false;
for (auto &inp : txn.second["vin"]) {
if (inp["prevout"]["scriptpubkey_type"] != "v0_p2wpkh"){
if (inp["prevout"]["scriptpubkey_type"] != "v0_p2wpkh" || inp["prevout"]["scriptpubkey_type"] != "p2pkh"){
flag = true;
break;
}
Expand Down

0 comments on commit 940880e

Please sign in to comment.