Skip to content

Commit

Permalink
review fix
Browse files Browse the repository at this point in the history
  • Loading branch information
panleone committed Oct 16, 2023
1 parent 62cde10 commit 216d79a
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion scripts/mempool.js
Expand Up @@ -77,7 +77,7 @@ export class Transaction {
}
isCoinBase() {
// txid undefined happens only for coinbase inputs
return this.vin.length == 1 && this.vin[0].outpoint.txid === undefined;
return this.vin.length == 1 && !this.vin[0].outpoint.txid;
}
isMature() {
if (!(this.isCoinBase() || this.isCoinStake())) {
Expand Down

0 comments on commit 216d79a

Please sign in to comment.