Skip to content

Commit

Permalink
Merge branch 'dev' into feat/issues-1349-review-info-boxes
Browse files Browse the repository at this point in the history
  • Loading branch information
begonaalvarezd authored Apr 26, 2024
2 parents e811436 + e4be147 commit 7db85f2
Show file tree
Hide file tree
Showing 23 changed files with 289 additions and 220 deletions.
5 changes: 0 additions & 5 deletions api/src/models/api/nova/chronicle/ISlotBlocksRequest.ts
Original file line number Diff line number Diff line change
Expand Up @@ -8,9 +8,4 @@ export interface ISlotBlocksRequest {
* The slot index to get the details for.
*/
slotIndex: string;

/**
* The cursor state for the request.
*/
cursor?: string;
}
8 changes: 2 additions & 6 deletions api/src/services/nova/chronicleService.ts
Original file line number Diff line number Diff line change
Expand Up @@ -58,9 +58,7 @@ export class ChronicleService {

do {
try {
const params = {
cursor: request.cursor,
};
const params = { cursor };
const response = await FetchHelper.json<never, ISlotBlocksResponse>(
this.chronicleEndpoint,
`${CHRONICLE_ENDPOINTS.slotBlocks}${params ? `${FetchHelper.urlParams(params)}` : ""}`.replace(
Expand All @@ -69,9 +67,7 @@ export class ChronicleService {
),
"get",
);
// Hardcoded to null for now because chronicle always returns the same cursor: https://github.com/iotaledger/inx-chronicle/issues/1362
cursor = null;
// cursor = response.cursor;
cursor = response.cursor;

if (response.blocks) {
slotBlocks.push(...response.blocks);
Expand Down
2 changes: 1 addition & 1 deletion api/src/services/nova/influx/influxQueries.ts
Original file line number Diff line number Diff line change
Expand Up @@ -93,7 +93,7 @@ export const BLOCK_STATS_QUERY = `
sum("candidacy_announcement_count") AS "candidacy",
sum("validation_count") AS "noPayload"
FROM "iota_block_activity"
WHERE time >= $from and time <= $to
WHERE time >= $from and time < $to
`;

export const TOKENS_HELD_BY_OUTPUTS_DAILY_QUERY = {
Expand Down
Loading

0 comments on commit 7db85f2

Please sign in to comment.