We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 52c081a commit 94dbc60Copy full SHA for 94dbc60
indexer/src/kadena-server/repository/infra/repository/block-db-repository.ts
@@ -160,7 +160,7 @@ export default class BlockDbRepository implements BlockRepository {
160
conditions += `\nAND b."chainId" = ANY($${queryParams.length})`;
161
}
162
163
- if (endHeight && endHeight - startHeight < 20) {
+ if (endHeight) {
164
queryParams.push(endHeight);
165
conditions += `\nAND b."height" <= $${queryParams.length}`;
166
@@ -182,7 +182,7 @@ export default class BlockDbRepository implements BlockRepository {
182
FROM "Blocks" b
183
WHERE b.height >= $2
184
${conditions}
185
- ORDER BY b.height ${order}
+ ORDER BY b.height, b.id ${order}
186
LIMIT $1;
187
`;
188
0 commit comments