We no longer need to select cost and fee here.

This commit is contained in:
Amine Khaldi 2023-12-22 10:41:12 +01:00
parent 1df7f5f8df
commit ae193db2e8
No known key found for this signature in database
GPG Key ID: B1C074FFC904E2D9

View File

@ -326,7 +326,7 @@ class Mempool:
if self._total_cost + item.cost > self.mempool_info.max_size_in_cost:
# pick the items with the lowest fee per cost to remove
cursor = self._db_conn.execute(
"""SELECT name, cost, fee FROM tx
"""SELECT name FROM tx
WHERE name NOT IN (
SELECT name FROM (
SELECT name,