fix duplicate mempool txs in address endpoint

This commit is contained in:
Mononaut 2024-10-25 05:46:47 +00:00
parent 80758eac15
commit c828ae952d
No known key found for this signature in database
GPG Key ID: A3F058E41374C04E

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