Fix typo which skips sigop calculation

This commit is contained in:
Mononaut
2023-07-24 10:45:27 +09:00
parent caa8cfbc0e
commit 44f2217a68
2 changed files with 2 additions and 2 deletions

View File

@@ -86,7 +86,7 @@ class Mempool {
this.mempoolCache = mempoolData;
let count = 0;
for (const txid of Object.keys(this.mempoolCache)) {
if (this.mempoolCache[txid].sigops == null || this.mempoolCache[txid].effectiveFeePerVsize == null) {
if (!this.mempoolCache[txid].sigops || this.mempoolCache[txid].effectiveFeePerVsize == null) {
this.mempoolCache[txid] = transactionUtils.extendMempoolTransaction(this.mempoolCache[txid]);
}
if (this.mempoolCache[txid].order == null) {