Merge pull request #4302 from mempool/simon/liquid-blocks-api

Fix block pagination for liquid
This commit is contained in:
softsimon 2023-11-07 10:42:26 +09:00 committed by GitHub
commit fbc6c078ef
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -478,7 +478,7 @@ class BitcoinRoutes {
}
let nextHash = startFromHash;
for (let i = 0; i < 10 && nextHash; i++) {
for (let i = 0; i < 15 && nextHash; i++) {
const localBlock = blocks.getBlocks().find((b) => b.id === nextHash);
if (localBlock) {
returnBlocks.push(localBlock);