Merge pull request #3259 from mempool/mononaut/fix-cpfp-memory-bug

Fix memory-intensive getCPFPUnindexedBlocks mysql query
This commit is contained in:
wiz 2023-03-08 15:10:31 +09:00 committed by GitHub
commit b8a3c15ed2
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

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]);