Skip to content

Commit

Permalink
Merge pull request #107 from mempool/mononaut/fix-duplicate-mempool-txs
Browse files Browse the repository at this point in the history
fix duplicate mempool txs in address endpoint
  • Loading branch information
wiz authored Oct 25, 2024
2 parents 80758ea + c828ae9 commit 9330f24
Showing 1 changed file with 0 additions and 8 deletions.
8 changes: 0 additions & 8 deletions src/rest.rs
Original file line number Diff line number Diff line change
Expand Up @@ -937,14 +937,6 @@ fn handle_request(
TxidLocation::Chain(height) => Some(height),
};

txs.extend(
query
.mempool()
.history(&script_hash[..], after_txid.as_ref(), max_txs)
.into_iter()
.map(|tx| (tx, None)),
);

if txs.len() < max_txs {
let after_txid_ref = if !txs.is_empty() {
// If there are any txs, we know mempool found the
Expand Down

0 comments on commit 9330f24

Please sign in to comment.