Skip to content

Commit

Permalink
Filter out mined transactions in refreshMempoolTxns
Browse files Browse the repository at this point in the history
  • Loading branch information
nuttycom committed Aug 13, 2024
1 parent 56fe52a commit 90116a7
Showing 1 changed file with 6 additions and 0 deletions.
6 changes: 6 additions & 0 deletions common/mempool.go
Original file line number Diff line number Diff line change
Expand Up @@ -124,6 +124,12 @@ func refreshMempoolTxns() error {
return err
}

// Skip any transaction that has been mined since the list of txids
// was retrieved.
if (rawtx.Height != 0) {
continue;
}

g_txList = append(g_txList, rawtx)
}
return nil
Expand Down

0 comments on commit 90116a7

Please sign in to comment.