Skip to content

Commit

Permalink
fix compact block mempool parse
Browse files Browse the repository at this point in the history
  • Loading branch information
vinarmani committed Oct 30, 2021
1 parent 1baf12f commit 07f92ee
Showing 1 changed file with 6 additions and 0 deletions.
6 changes: 6 additions & 0 deletions lib/net/bip152.js
Original file line number Diff line number Diff line change
Expand Up @@ -275,6 +275,9 @@ class CompactBlock extends AbstractBlock {
const set = new Set();

for (const {tx} of mempool.map.values()) {
if (!tx)
continue;

const hash = tx.hash();
const id = this.sid(hash);
const index = this.idMap.get(id);
Expand Down Expand Up @@ -462,6 +465,9 @@ class CompactBlock extends AbstractBlock {

for (let i = 1; i < block.txs.length; i++) {
const tx = block.txs[i];
if (!tx)
continue;

const hash = tx.hash();
const id = this.sid(hash);

Expand Down

0 comments on commit 07f92ee

Please sign in to comment.