Reduce /internal/txs RBF cache query chunk size to 250
This commit is contained in:
parent
5998b54fec
commit
c0a481acbe
@ -480,7 +480,7 @@ class RbfCache {
|
|||||||
};
|
};
|
||||||
|
|
||||||
if (config.MEMPOOL.BACKEND === 'esplora') {
|
if (config.MEMPOOL.BACKEND === 'esplora') {
|
||||||
const sliceLength = 1000;
|
const sliceLength = 250;
|
||||||
for (let i = 0; i < Math.ceil(txids.length / sliceLength); i++) {
|
for (let i = 0; i < Math.ceil(txids.length / sliceLength); i++) {
|
||||||
const slice = txids.slice(i * sliceLength, (i + 1) * sliceLength);
|
const slice = txids.slice(i * sliceLength, (i + 1) * sliceLength);
|
||||||
try {
|
try {
|
||||||
|
Loading…
x
Reference in New Issue
Block a user