Merge pull request #107 from mempool/mononaut/fix-duplicate-mempool-txs

fix duplicate mempool txs in address endpoint
This commit is contained in:
wiz 2024-10-25 14:50:03 +09:00 committed by GitHub
commit 9330f246bb
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194

View File

@ -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