Fix memory-intensive getCPFPUnindexedBlocks mysql query

This commit is contained in:
Mononaut 2023-03-07 21:01:54 -06:00
parent da25577ea7
commit 5eae84bb75
No known key found for this signature in database
GPG Key ID: A3F058E41374C04E

View File

@ -748,6 +748,7 @@ class BlocksRepository {
SELECT height
FROM compact_cpfp_clusters
WHERE height <= ? AND height >= ?
GROUP BY height
ORDER BY height DESC;
`, [currentBlockHeight, minHeight]);