Reduce /internal/txs RBF cache query chunk size to 250

This commit is contained in:
wiz 2023-11-12 19:09:36 +09:00 committed by GitHub
parent 5998b54fec
commit c0a481acbe
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -480,7 +480,7 @@ class RbfCache {
};
if (config.MEMPOOL.BACKEND === 'esplora') {
const sliceLength = 1000;
const sliceLength = 250;
for (let i = 0; i < Math.ceil(txids.length / sliceLength); i++) {
const slice = txids.slice(i * sliceLength, (i + 1) * sliceLength);
try {